binqiangliu commited on
Commit
f1c7a53
·
1 Parent(s): 6da4f83

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -49,7 +49,7 @@ llm_chain = LLMChain(llm=llm, prompt=PromptTemplate.from_template(prompt_templat
49
  app = Flask(__name__)
50
  @app.route('/api/chat', methods=['POST'])
51
  #def chat():
52
- async def chat():
53
  data = request.get_json()
54
  #user_query = data['query']
55
  #此处的['query']中的query可以自定义名称,例如修改为user_question,那么调用API的代码中,需要相应的使用data = {'user_question': user_query},user_question需一致
 
49
  app = Flask(__name__)
50
  @app.route('/api/chat', methods=['POST'])
51
  #def chat():
52
+ def chat():
53
  data = request.get_json()
54
  #user_query = data['query']
55
  #此处的['query']中的query可以自定义名称,例如修改为user_question,那么调用API的代码中,需要相应的使用data = {'user_question': user_query},user_question需一致