Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,18 +50,14 @@ with tab_your_paper:
|
|
50 |
recently_added.append(pdf_path)
|
51 |
|
52 |
pdfs_content_list = []
|
53 |
-
print("*****", recently_added)
|
54 |
for recent_pdf in recently_added:
|
55 |
# Reading the pdf files
|
56 |
pdf_content = get_pdf_text(recent_pdf)
|
57 |
-
print("**", pdf_content)
|
58 |
pdfs_content_list.append(pdf_content)
|
59 |
|
60 |
# Delete the files
|
61 |
os.remove(recent_pdf)
|
62 |
|
63 |
-
print("************************", len(pdfs_content_list))
|
64 |
-
print(pdfs_content_list[0][:20], pdfs_content_list[1][:20])
|
65 |
all_text_together = " ".join(pdfs_content_list)
|
66 |
|
67 |
st.write(all_text_together)
|
|
|
50 |
recently_added.append(pdf_path)
|
51 |
|
52 |
pdfs_content_list = []
|
|
|
53 |
for recent_pdf in recently_added:
|
54 |
# Reading the pdf files
|
55 |
pdf_content = get_pdf_text(recent_pdf)
|
|
|
56 |
pdfs_content_list.append(pdf_content)
|
57 |
|
58 |
# Delete the files
|
59 |
os.remove(recent_pdf)
|
60 |
|
|
|
|
|
61 |
all_text_together = " ".join(pdfs_content_list)
|
62 |
|
63 |
st.write(all_text_together)
|