Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -20,7 +20,7 @@ def recommend():
|
|
20 |
# Get form data
|
21 |
# request_data = request.args.get("input").get_json()
|
22 |
# input_text = request_data['input_text']
|
23 |
-
request_data = request.
|
24 |
input_text = request_data['input_text']
|
25 |
print(input_text)
|
26 |
|
|
|
20 |
# Get form data
|
21 |
# request_data = request.args.get("input").get_json()
|
22 |
# input_text = request_data['input_text']
|
23 |
+
request_data = request.json.get("input")
|
24 |
input_text = request_data['input_text']
|
25 |
print(input_text)
|
26 |
|