Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -273,7 +273,7 @@ def pdf_to_iframe(file):
|
|
| 273 |
return f"""
|
| 274 |
<iframe
|
| 275 |
src="data:application/pdf;base64,{encoded}"
|
| 276 |
-
width="100%" height="
|
| 277 |
style="border:1px solid #ccc;"
|
| 278 |
></iframe>
|
| 279 |
"""
|
|
@@ -282,7 +282,6 @@ def pdf_to_iframe(file):
|
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
-
|
| 286 |
# ---------- Gradio UI ----------
|
| 287 |
with gr.Blocks(theme=simple_theme, title=APP_TITLE) as interface:
|
| 288 |
gr.HTML(f"""
|
|
|
|
| 273 |
return f"""
|
| 274 |
<iframe
|
| 275 |
src="data:application/pdf;base64,{encoded}"
|
| 276 |
+
width="100%" height="600px"
|
| 277 |
style="border:1px solid #ccc;"
|
| 278 |
></iframe>
|
| 279 |
"""
|
|
|
|
| 282 |
|
| 283 |
|
| 284 |
|
|
|
|
| 285 |
# ---------- Gradio UI ----------
|
| 286 |
with gr.Blocks(theme=simple_theme, title=APP_TITLE) as interface:
|
| 287 |
gr.HTML(f"""
|