binqiangliu commited on
Commit
fd93d00
·
1 Parent(s): e4966b2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -12,6 +12,8 @@ from flask import request, Flask
12
  #python -m pip install requests
13
  #import requests
14
 
 
 
15
  app = Flask(__name__)
16
 
17
  @app.route('/api/chat', methods=['POST'])
@@ -19,4 +21,6 @@ def chatbot():
19
  data = request.get_json()
20
  user_query = data['user_question']
21
  print(user_query)
22
- return {"Message":"Flask API /api/chat Deploy Success on HF"}
 
 
 
12
  #python -m pip install requests
13
  #import requests
14
 
15
+ #Flask Deploy to Huggingface Cloud in 4 Minutes : https://www.youtube.com/watch?v=pWnE9FHnGcQ
16
+
17
  app = Flask(__name__)
18
 
19
  @app.route('/api/chat', methods=['POST'])
 
21
  data = request.get_json()
22
  user_query = data['user_question']
23
  print(user_query)
24
+ return {"Message":"Flask API /api/chat Deploy Success on HF"}
25
+
26
+ #Runtime error - Not enough Hardware resource - Restart this Space