Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -177,7 +177,12 @@ if __name__ == "__main__":
|
|
177 |
file_name=f"{patent_number}.pdf",
|
178 |
mime="application/pdf"
|
179 |
)
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
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 |
|