Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -22,8 +22,8 @@ def home():
|
|
| 22 |
return request.url
|
| 23 |
|
| 24 |
|
| 25 |
-
|
| 26 |
-
@app.route("/predict")
|
| 27 |
def predict():
|
| 28 |
try:
|
| 29 |
# Debugging: print input code to check if the request is received correctly
|
|
|
|
| 22 |
return request.url
|
| 23 |
|
| 24 |
|
| 25 |
+
@app.route("/predict", methods=["POST"])
|
| 26 |
+
# @app.route("/predict")
|
| 27 |
def predict():
|
| 28 |
try:
|
| 29 |
# Debugging: print input code to check if the request is received correctly
|