Seetha commited on
Commit
5853ee9
·
1 Parent(s): e90e7ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -41,8 +41,11 @@
41
  # dataset = load_dataset('json', data_files='./level.json')
42
 
43
  import streamlit as st
 
44
 
45
- if st.button('Say hello'):
46
- st.write('Why hello there')
 
 
47
  else:
48
  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 = urllib2.urlopen(target_url)
49
+ st.write(data)
50
  else:
51
  st.write('Goodbye')