Spaces:
Sleeping
Sleeping
Commit
·
f15d776
1
Parent(s):
0525137
Update main.py
Browse files
main.py
CHANGED
@@ -8,6 +8,7 @@ app = Flask(__name__)
|
|
8 |
|
9 |
@app.route('/api/chat', methods=['POST'])
|
10 |
def chatbot():
|
11 |
-
|
12 |
-
|
|
|
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"}
|