Spaces:
Sleeping
Sleeping
Commit
·
0525137
1
Parent(s):
c7726fe
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,6 +6,8 @@ from flask import request, Flask
|
|
| 6 |
|
| 7 |
app = Flask(__name__)
|
| 8 |
|
| 9 |
-
@app.route('/api/chat')
|
| 10 |
def chatbot():
|
|
|
|
|
|
|
| 11 |
return {"Hey":"Flask API Deploy Success on HF"}
|
|
|
|
| 6 |
|
| 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"}
|