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