iShare commited on
Commit
4a1f89e
·
1 Parent(s): ce43efa

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -48,8 +48,8 @@ def home_api():
48
  return {"Hey":"Flask Home API Deploy Success on HF"}
49
 
50
  @app.route('/api/chat', methods=['POST'])
51
- def chat():
52
- #async def chat():
53
  #不支持async
54
  data = request.get_json()
55
  user_query = data['user_question']
 
48
  return {"Hey":"Flask Home API Deploy Success on HF"}
49
 
50
  @app.route('/api/chat', methods=['POST'])
51
+ #def chat():
52
+ async def chat():
53
  #不支持async
54
  data = request.get_json()
55
  user_query = data['user_question']