Spaces:
Running
Running
Update app.py
Browse files
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>
|
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()
|