Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,17 @@ import sys
|
|
| 9 |
import requests
|
| 10 |
#from IPython.display import IFrame
|
| 11 |
|
|
|
|
| 12 |
def scrape(instring):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
response = requests.get(instring, stream=True)
|
| 14 |
|
| 15 |
if response.status_code == 200:
|
|
|
|
| 9 |
import requests
|
| 10 |
#from IPython.display import IFrame
|
| 11 |
|
| 12 |
+
|
| 13 |
def scrape(instring):
|
| 14 |
+
html_src=('''
|
| 15 |
+
<div style="text-align:center">
|
| 16 |
+
<h4>Pdf viewer testing</h4>
|
| 17 |
+
<iframe src="https://docs.google.com/viewer?url=http://www.pdf995.com/samples/pdf.pdf&embedded=true" frameborder="0" height="500px" width="100%"></iframe>
|
| 18 |
+
</div>''')
|
| 19 |
+
return gr.HTML.update(f'''{html_src}''')
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def scrape00(instring):
|
| 23 |
response = requests.get(instring, stream=True)
|
| 24 |
|
| 25 |
if response.status_code == 200:
|