Spaces:
Sleeping
Sleeping
add nest_asyncio
Browse files
app.py
CHANGED
|
@@ -9,8 +9,11 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
| 9 |
from langchain.prompts import PromptTemplate
|
| 10 |
from langchain_core.runnables import RunnablePassthrough
|
| 11 |
from langchain_core.output_parsers import StrOutputParser
|
| 12 |
-
|
| 13 |
import tempfile
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# Constants
|
| 16 |
LLM_MODEL = "gemini-1.5-flash"
|
|
|
|
| 9 |
from langchain.prompts import PromptTemplate
|
| 10 |
from langchain_core.runnables import RunnablePassthrough
|
| 11 |
from langchain_core.output_parsers import StrOutputParser
|
|
|
|
| 12 |
import tempfile
|
| 13 |
+
import nest_asyncio
|
| 14 |
+
|
| 15 |
+
# Apply nest_asyncio
|
| 16 |
+
nest_asyncio.apply()
|
| 17 |
|
| 18 |
# Constants
|
| 19 |
LLM_MODEL = "gemini-1.5-flash"
|