Spaces:
Running
Running
Update app.py
Browse files
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
|
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
|