Update app.py
Browse files
app.py
CHANGED
@@ -41,11 +41,11 @@
|
|
41 |
# dataset = load_dataset('json', data_files='./level.json')
|
42 |
|
43 |
import streamlit as st
|
44 |
-
import urllib2
|
45 |
|
46 |
target_url = 'https://huggingface.co/datasets/Seetha/Visualization/raw/main/AFLAC_Wyatt_notag.pdf'
|
47 |
if st.button('PDF1'):
|
48 |
-
data =
|
49 |
st.write(data)
|
50 |
else:
|
51 |
st.write('Goodbye')
|
|
|
41 |
# dataset = load_dataset('json', data_files='./level.json')
|
42 |
|
43 |
import streamlit as st
|
44 |
+
import urllib2 # the lib that handles the url stuff
|
45 |
|
46 |
target_url = 'https://huggingface.co/datasets/Seetha/Visualization/raw/main/AFLAC_Wyatt_notag.pdf'
|
47 |
if st.button('PDF1'):
|
48 |
+
data = urllib.urlopen(target_url)
|
49 |
st.write(data)
|
50 |
else:
|
51 |
st.write('Goodbye')
|