Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ from langchain.memory import ConversationBufferMemory
|
|
11 |
from langchain_core.output_parsers import StrOutputParser
|
12 |
from langchain_core.runnables import RunnablePassthrough, RunnableLambda
|
13 |
import spacy
|
|
|
14 |
|
15 |
# Function to check and download spaCy model
|
16 |
def ensure_spacy_model(model_name="en_core_web_sm"):
|
|
|
11 |
from langchain_core.output_parsers import StrOutputParser
|
12 |
from langchain_core.runnables import RunnablePassthrough, RunnableLambda
|
13 |
import spacy
|
14 |
+
import subprocess
|
15 |
|
16 |
# Function to check and download spaCy model
|
17 |
def ensure_spacy_model(model_name="en_core_web_sm"):
|