Spaces:
Running
Running
wangrongsheng
commited on
Commit
·
e038167
1
Parent(s):
662ba3a
Update app.py
Browse files
app.py
CHANGED
@@ -598,10 +598,10 @@ class Reader:
|
|
598 |
}
|
599 |
md_text = "\n".join(htmls)
|
600 |
|
601 |
-
with open(os.path.join('./', 'output.md'), "w", encoding="utf8") as f:
|
602 |
-
|
603 |
|
604 |
-
return markdown.markdown(md_text), pos_count, os.path.join('./', 'output.md')
|
605 |
|
606 |
@tenacity.retry(wait=tenacity.wait_exponential(multiplier=1, min=4,
|
607 |
max=10),
|
@@ -859,7 +859,7 @@ ip = [
|
|
859 |
|
860 |
chatpaper_gui = gradio.Interface(fn=upload_pdf,
|
861 |
inputs=ip,
|
862 |
-
outputs=["json", "html"
|
863 |
title=title,
|
864 |
description=description)
|
865 |
|
|
|
598 |
}
|
599 |
md_text = "\n".join(htmls)
|
600 |
|
601 |
+
#with open(os.path.join('./', 'output.md'), "w", encoding="utf8") as f:
|
602 |
+
# f.write(md_text)
|
603 |
|
604 |
+
return markdown.markdown(md_text), pos_count # , os.path.join('./', 'output.md')
|
605 |
|
606 |
@tenacity.retry(wait=tenacity.wait_exponential(multiplier=1, min=4,
|
607 |
max=10),
|
|
|
859 |
|
860 |
chatpaper_gui = gradio.Interface(fn=upload_pdf,
|
861 |
inputs=ip,
|
862 |
+
outputs=["json", "html"],
|
863 |
title=title,
|
864 |
description=description)
|
865 |
|