Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -10,9 +10,9 @@ def indexget():
|
|
| 10 |
return {"hai":"success"}
|
| 11 |
@app.route("/", methods=["POST"])
|
| 12 |
def index():
|
| 13 |
-
text = request.get_json()
|
| 14 |
-
response = text["test1"]+text["test2"]
|
| 15 |
-
return
|
| 16 |
|
| 17 |
if __name__ == "__main__":
|
| 18 |
app.run(host="0.0.0.0",port=int(os.environ.get('PORT', 7860)))
|
|
|
|
| 10 |
return {"hai":"success"}
|
| 11 |
@app.route("/", methods=["POST"])
|
| 12 |
def index():
|
| 13 |
+
# text = request.get_json()
|
| 14 |
+
# response = text["test1"]+text["test2"]
|
| 15 |
+
return {"hai":"success"}
|
| 16 |
|
| 17 |
if __name__ == "__main__":
|
| 18 |
app.run(host="0.0.0.0",port=int(os.environ.get('PORT', 7860)))
|