added summary_text
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def summarize(text):
|
|
12 |
response = requests.post(API_URL, headers=headers, json=data)
|
13 |
|
14 |
if response.status_code == 200:
|
15 |
-
return response.json()
|
16 |
else:
|
17 |
return "Error occurred. Please try again."
|
18 |
|
|
|
12 |
response = requests.post(API_URL, headers=headers, json=data)
|
13 |
|
14 |
if response.status_code == 200:
|
15 |
+
return response.json()[0]["summary_text"]
|
16 |
else:
|
17 |
return "Error occurred. Please try again."
|
18 |
|