Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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 |
-
|
| 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']
|