Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -55,7 +55,8 @@ async def chat(chat_request: ChatRequest):
|
|
55 |
loader = WebBaseLoader(target_url)
|
56 |
print(target_url)
|
57 |
docs = loader.load()
|
58 |
-
result = chain.run(docs)
|
|
|
59 |
print("AI Summarization: " + result)
|
60 |
return {'response': result} #FastAPI方式下,这个返回形式,有问题?
|
61 |
#return JSONResponse({'response': result})
|
|
|
55 |
loader = WebBaseLoader(target_url)
|
56 |
print(target_url)
|
57 |
docs = loader.load()
|
58 |
+
#result = chain.run(docs)
|
59 |
+
result="Hi FastAPI"
|
60 |
print("AI Summarization: " + result)
|
61 |
return {'response': result} #FastAPI方式下,这个返回形式,有问题?
|
62 |
#return JSONResponse({'response': result})
|