Spaces:
Runtime error
Runtime error
manojpatil
commited on
Commit
•
77827f6
1
Parent(s):
847240a
Update app.py
Browse files
app.py
CHANGED
@@ -231,20 +231,20 @@ def stream(input_text,prompt,context1,context2) -> Generator:
|
|
231 |
async def chat(query: str):
|
232 |
print(query)
|
233 |
|
234 |
-
output1 = ThreadWithReturnValue(target = llama2,args=(query,))
|
235 |
output2 = ThreadWithReturnValue(target = websearch,args=(query,))
|
236 |
output3 = ThreadWithReturnValue(target = vectorsearch,args=(query,))
|
237 |
|
238 |
-
output1.start()
|
239 |
output2.start()
|
240 |
output3.start()
|
241 |
|
242 |
-
chatgpt_output=output1.join()
|
243 |
websearch_output=output2.join()
|
244 |
vectorsearch_output=output3.join()
|
245 |
|
246 |
context1=vectorsearch_output
|
247 |
-
context2=
|
248 |
print(context1)
|
249 |
gen = stream(query,prompt,context1,context2)
|
250 |
|
|
|
231 |
async def chat(query: str):
|
232 |
print(query)
|
233 |
|
234 |
+
#output1 = ThreadWithReturnValue(target = llama2,args=(query,))
|
235 |
output2 = ThreadWithReturnValue(target = websearch,args=(query,))
|
236 |
output3 = ThreadWithReturnValue(target = vectorsearch,args=(query,))
|
237 |
|
238 |
+
#output1.start()
|
239 |
output2.start()
|
240 |
output3.start()
|
241 |
|
242 |
+
#chatgpt_output=output1.join()
|
243 |
websearch_output=output2.join()
|
244 |
vectorsearch_output=output3.join()
|
245 |
|
246 |
context1=vectorsearch_output
|
247 |
+
context2= websearch_output
|
248 |
print(context1)
|
249 |
gen = stream(query,prompt,context1,context2)
|
250 |
|