iShare commited on
Commit
750768e
·
1 Parent(s): d35ff03

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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})