binqiangliu commited on
Commit
f15d776
·
1 Parent(s): 0525137

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -8,6 +8,7 @@ app = Flask(__name__)
8
 
9
  @app.route('/api/chat', methods=['POST'])
10
  def chatbot():
11
- incoming = request.get_json()
12
- print(incoming)
 
13
  return {"Hey":"Flask API Deploy Success on HF"}
 
8
 
9
  @app.route('/api/chat', methods=['POST'])
10
  def chatbot():
11
+ data = request.get_json()
12
+ user_query = data['user_question']
13
+ print(user_query)
14
  return {"Hey":"Flask API Deploy Success on HF"}