raannakasturi commited on
Commit
66ae007
·
verified ·
1 Parent(s): bdc9122

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import json
4
 
5
  def rexplore_summarizer(url, title, id, citation, access_key):
6
  response = json.loads(main(url, title, id, citation, access_key))
 
7
  if response["mindmap_status"] != "success":
8
  mindmap = "error"
9
  else:
@@ -12,7 +13,7 @@ def rexplore_summarizer(url, title, id, citation, access_key):
12
  summary = "error"
13
  else:
14
  summary = response["summary"]
15
- return response, summary, mindmap
16
 
17
  def clear_everything(url, title, id, citation, access_key, raw_data, summary, mindmap):
18
  return None, None, None, None, None, None
 
4
 
5
  def rexplore_summarizer(url, title, id, citation, access_key):
6
  response = json.loads(main(url, title, id, citation, access_key))
7
+ data = json.dumps(response, ensure_ascii=False, indent=4)
8
  if response["mindmap_status"] != "success":
9
  mindmap = "error"
10
  else:
 
13
  summary = "error"
14
  else:
15
  summary = response["summary"]
16
+ return data, summary, mindmap
17
 
18
  def clear_everything(url, title, id, citation, access_key, raw_data, summary, mindmap):
19
  return None, None, None, None, None, None