sujataprakashdatycs commited on
Commit
99c818d
·
verified ·
1 Parent(s): 47e2d4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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="80vh" <!-- dynamic height: 80% of viewport -->
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"""