Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ with open(something,"w") as write1:
|
|
17 |
with open("/usr/local/lib/python3.10/site-packages/langchain_huggingface/llms/huggingface_endpoint.py","r") as read1:
|
18 |
a=read1.read()
|
19 |
with open("/usr/local/lib/python3.10/site-packages/langchain_huggingface/llms/huggingface_endpoint.py","w") as write1:
|
20 |
-
write1.write(a.replace("stream=True","
|
21 |
from langchain_core.prompts.chat import ChatPromptTemplate, MessagesPlaceholder
|
22 |
system = '''Respond to the human as helpfully and accurately as possible. You have access to the following tools:
|
23 |
|
|
|
17 |
with open("/usr/local/lib/python3.10/site-packages/langchain_huggingface/llms/huggingface_endpoint.py","r") as read1:
|
18 |
a=read1.read()
|
19 |
with open("/usr/local/lib/python3.10/site-packages/langchain_huggingface/llms/huggingface_endpoint.py","w") as write1:
|
20 |
+
write1.write(a.replace(", stream=True",""))
|
21 |
from langchain_core.prompts.chat import ChatPromptTemplate, MessagesPlaceholder
|
22 |
system = '''Respond to the human as helpfully and accurately as possible. You have access to the following tools:
|
23 |
|