DrishtiSharma commited on
Commit
984a863
·
verified ·
1 Parent(s): c9a38a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -177,7 +177,12 @@ if __name__ == "__main__":
177
  file_name=f"{patent_number}.pdf",
178
  mime="application/pdf"
179
  )
180
- st.pdf(pdf_path)
 
 
 
 
 
181
 
182
  st.write("🔄 Loading document into the system...")
183
 
 
177
  file_name=f"{patent_number}.pdf",
178
  mime="application/pdf"
179
  )
180
+ # Embed PDF using iframe
181
+ st.write("📋 PDF Content:")
182
+ pdf_display = f"""
183
+ <iframe src="file://{pdf_path}" width="700" height="1000" style="border: none;"></iframe>
184
+ """
185
+ st.components.v1.html(pdf_display, height=1000)
186
 
187
  st.write("🔄 Loading document into the system...")
188