Spaces:
Running
Running
Commit
·
b6b0f54
1
Parent(s):
64e2bcf
Remove debug print statements from main execution flow
Browse files- main.py +0 -1
- post_blog.py +0 -1
- summarize_paper.py +0 -1
main.py
CHANGED
@@ -46,7 +46,6 @@ def paper_data(paper_data, wait_time=5):
|
|
46 |
except:
|
47 |
encoded_bytes = repr(citation).strip()
|
48 |
citation = html.unescape(encoded_bytes)
|
49 |
-
print(f"Posting blog '{title}'")
|
50 |
status = post_blog(doi, title, category, summary, mindmap, citation, access_key, wait_time)
|
51 |
except Exception as e:
|
52 |
print(f"Error posting blog '{title}': {e}")
|
|
|
46 |
except:
|
47 |
encoded_bytes = repr(citation).strip()
|
48 |
citation = html.unescape(encoded_bytes)
|
|
|
49 |
status = post_blog(doi, title, category, summary, mindmap, citation, access_key, wait_time)
|
50 |
except Exception as e:
|
51 |
print(f"Error posting blog '{title}': {e}")
|
post_blog.py
CHANGED
@@ -18,7 +18,6 @@ imgbb_api_key = os.getenv('IMGBB_API_KEY')
|
|
18 |
|
19 |
def generate_post_html(doi, title, category, summary, mindmap, citation):
|
20 |
doi = doi.split("https://")[-1]
|
21 |
-
print(f"Generating post for {doi}")
|
22 |
title = title.replace("{", r'{').replace("}", r'}')
|
23 |
title = re.sub(r"\\(?![a-zA-Z])", r"", title)
|
24 |
summary = summary.replace("{", r'{').replace("}", r'}')
|
|
|
18 |
|
19 |
def generate_post_html(doi, title, category, summary, mindmap, citation):
|
20 |
doi = doi.split("https://")[-1]
|
|
|
21 |
title = title.replace("{", r'{').replace("}", r'}')
|
22 |
title = re.sub(r"\\(?![a-zA-Z])", r"", title)
|
23 |
summary = summary.replace("{", r'{').replace("}", r'}')
|
summarize_paper.py
CHANGED
@@ -12,7 +12,6 @@ def summarize_paper(pdf_url, paper_id, access_key):
|
|
12 |
access_key=access_key,
|
13 |
api_name="/rexplore_summarizer"
|
14 |
)
|
15 |
-
print(result)
|
16 |
if result:
|
17 |
data = json.loads(result[0])
|
18 |
if data["mindmap_status"] == "success":
|
|
|
12 |
access_key=access_key,
|
13 |
api_name="/rexplore_summarizer"
|
14 |
)
|
|
|
15 |
if result:
|
16 |
data = json.loads(result[0])
|
17 |
if data["mindmap_status"] == "success":
|