Omnibus commited on
Commit
d599b56
·
1 Parent(s): d02b2ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  def scrape(instring):
6
  html_src=(f'''
7
  <div style="text-align:center">
8
- <h4>Pdf viewer testing</h4>
9
  <iframe src="https://docs.google.com/viewer?url={instring}&embedded=true" frameborder="0" height="1200px" width="100%"></iframe>
10
  </div>''')
11
  return gr.HTML.update(f'''{html_src}''')
@@ -13,6 +13,7 @@ def scrape(instring):
13
 
14
 
15
  with gr.Blocks() as app:
 
16
  inp=gr.Textbox()
17
  go_btn = gr.Button()
18
  outp = gr.HTML()
 
5
  def scrape(instring):
6
  html_src=(f'''
7
  <div style="text-align:center">
8
+ <h4>PDF Viewer</h4>
9
  <iframe src="https://docs.google.com/viewer?url={instring}&embedded=true" frameborder="0" height="1200px" width="100%"></iframe>
10
  </div>''')
11
  return gr.HTML.update(f'''{html_src}''')
 
13
 
14
 
15
  with gr.Blocks() as app:
16
+ gr.Markdown('''<h1>PDF Viewer''')
17
  inp=gr.Textbox()
18
  go_btn = gr.Button()
19
  outp = gr.HTML()