Spaces:
Sleeping
Sleeping
samyak152002
commited on
Commit
•
ba4d8fc
1
Parent(s):
243179e
Update app.py
Browse files
app.py
CHANGED
@@ -221,4 +221,21 @@ def main():
|
|
221 |
display_pdf_viewer(pdf_bytes, [])
|
222 |
|
223 |
with col2:
|
224 |
-
st.markdown("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
display_pdf_viewer(pdf_bytes, [])
|
222 |
|
223 |
with col2:
|
224 |
+
st.markdown("### Analysis Details")
|
225 |
+
display_analysis_results(results)
|
226 |
+
|
227 |
+
except Exception as e:
|
228 |
+
st.error(f"Error analyzing PDF: {str(e)}")
|
229 |
+
st.code(traceback.format_exc())
|
230 |
+
else:
|
231 |
+
st.markdown("### Upload a PDF to begin analysis")
|
232 |
+
st.markdown("""
|
233 |
+
This tool will analyze your PDF document for:
|
234 |
+
- Language issues and grammar
|
235 |
+
- Reference formatting and consistency
|
236 |
+
- Document structure
|
237 |
+
- Figure and table placement
|
238 |
+
""")
|
239 |
+
|
240 |
+
if __name__ == "__main__":
|
241 |
+
main()
|