Omnibus commited on
Commit
b78c657
·
1 Parent(s): 1af1718

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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'''{soup}''')
48
 
49
  with gr.Blocks() as app:
50
  inp=gr.Textbox()
51
  go_btn = gr.Button()
52
  outp = gr.HTML()
53
- go_btn.click(scrape,inp,outp)
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()