Spaces:
Sleeping
Sleeping
SnehaAkula
commited on
Commit
•
1091667
1
Parent(s):
b26dc5d
Update app.py
Browse files
app.py
CHANGED
@@ -71,8 +71,8 @@ def main():
|
|
71 |
file_extension = os.path.splitext(uploaded_file.name)[1].lower()
|
72 |
if file_extension == ".docx":
|
73 |
response, document_text = process_document(uploaded_file, "")
|
74 |
-
if document_text is not None:
|
75 |
-
|
76 |
elif file_extension == ".pdf":
|
77 |
images = pdf_to_images(uploaded_file.getvalue())
|
78 |
if images:
|
|
|
71 |
file_extension = os.path.splitext(uploaded_file.name)[1].lower()
|
72 |
if file_extension == ".docx":
|
73 |
response, document_text = process_document(uploaded_file, "")
|
74 |
+
# if document_text is not None:
|
75 |
+
# st.text_area("Document Text", value=document_text, height=300)
|
76 |
elif file_extension == ".pdf":
|
77 |
images = pdf_to_images(uploaded_file.getvalue())
|
78 |
if images:
|