Rahmat82 commited on
Commit
6432cd1
·
verified ·
1 Parent(s): 726f67a

added summary_text

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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