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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,7 +31,7 @@ def scrape0(instring):
31
  html_content = requests.get(url).text
32
  soup = bs(html_content,"html.parser")
33
 
34
- with open('/tmp/metadata.pdf', 'wb') as fd:
35
  for chunk in r.iter_content(chunk_size):
36
  fd.write(chunk)
37
 
@@ -44,7 +44,7 @@ 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'''<object data=/tmp/meatdata.pdf type="application/pdf" width="100%" height="500px">''')
48
 
49
  with gr.Blocks() as app:
50
  inp=gr.Textbox()
 
31
  html_content = requests.get(url).text
32
  soup = bs(html_content,"html.parser")
33
 
34
+ with open('metadata.pdf', 'wb') as fd:
35
  for chunk in r.iter_content(chunk_size):
36
  fd.write(chunk)
37
 
 
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=metadata.pdf type="application/pdf" width="100%" height="500px">''')
48
 
49
  with gr.Blocks() as app:
50
  inp=gr.Textbox()