Spaces:
Runtime error
Runtime error
fix request args
Browse files
app.py
CHANGED
|
@@ -18,9 +18,9 @@ def home():
|
|
| 18 |
def recommend():
|
| 19 |
if request.method == "POST":
|
| 20 |
# Get form data
|
| 21 |
-
# request_data = request.args.get("input").get_json()
|
| 22 |
# input_text = request_data['input_text']
|
| 23 |
-
|
|
|
|
| 24 |
|
| 25 |
# Call the function summarize to run the text summarization
|
| 26 |
try:
|
|
|
|
| 18 |
def recommend():
|
| 19 |
if request.method == "POST":
|
| 20 |
# Get form data
|
|
|
|
| 21 |
# input_text = request_data['input_text']
|
| 22 |
+
request_data = request.args.get("input")
|
| 23 |
+
input_text = request_data.get_json()['input_text']
|
| 24 |
|
| 25 |
# Call the function summarize to run the text summarization
|
| 26 |
try:
|