Spaces:
Running
Running
BeveledCube
commited on
Commit
·
7774227
1
Parent(s):
c81e4d3
Post agagin
Browse files
main.py
CHANGED
@@ -14,7 +14,7 @@ def read_root():
|
|
14 |
def test_route():
|
15 |
return "This is a test route."
|
16 |
|
17 |
-
@app.route("/api", methods=["
|
18 |
def receive_data():
|
19 |
data = request.get_json()
|
20 |
print("Prompt:", data["prompt"])
|
|
|
14 |
def test_route():
|
15 |
return "This is a test route."
|
16 |
|
17 |
+
@app.route("/api", methods=["POST"])
|
18 |
def receive_data():
|
19 |
data = request.get_json()
|
20 |
print("Prompt:", data["prompt"])
|