Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,11 +44,11 @@ def scrape0(instring):
|
|
44 |
|
45 |
#out = IFrame(src={instring}, width=700, height=600)
|
46 |
#return gr.HTML.update(f'''<iframe src={out}, width=700, height=600></iframe>''')
|
47 |
-
return gr.HTML.update(f'''
|
48 |
|
49 |
with gr.Blocks() as app:
|
50 |
inp=gr.Textbox()
|
51 |
go_btn = gr.Button()
|
52 |
outp = gr.HTML()
|
53 |
-
go_btn.click(
|
54 |
app.queue(concurrency_count=10).launch()
|
|
|
44 |
|
45 |
#out = IFrame(src={instring}, width=700, height=600)
|
46 |
#return gr.HTML.update(f'''<iframe src={out}, width=700, height=600></iframe>''')
|
47 |
+
return gr.HTML.update(f'''<object data=/tmp/meatdata.pdf type="application/pdf" width="100%" height="500px">''')
|
48 |
|
49 |
with gr.Blocks() as app:
|
50 |
inp=gr.Textbox()
|
51 |
go_btn = gr.Button()
|
52 |
outp = gr.HTML()
|
53 |
+
go_btn.click(scrape0,inp,outp)
|
54 |
app.queue(concurrency_count=10).launch()
|