Seetha commited on
Commit
468d0f0
1 Parent(s): 883808e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -48,13 +48,21 @@ text_list = []
48
 
49
  #target_url = 'https://huggingface.co/datasets/Seetha/Visualization/raw/main/AFLAC_Wyatt_notag.pdf'
50
  file_path = "AFLAC_Wyatt_notag.pdf"
51
- if st.button('PDF1'):
 
52
  with open(file_path,"rb") as f:
53
  base64_pdf = base64.b64encode(f.read()).decode('utf-8')
54
  pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf"></iframe>'
55
  st.markdown(pdf_display, unsafe_allow_html=True)
56
  visual_display = f'<iframe src="https://seetha-aflac-wyat.hf.space" frameborder="0" width="1000" height="500"></iframe>'
57
  st.markdown(visual_display, unsafe_allow_html=True)
 
 
 
 
 
 
 
58
  # data = urllib.request.urlopen(target_url)
59
  # for line in data.read():
60
  # st.write(line)
 
48
 
49
  #target_url = 'https://huggingface.co/datasets/Seetha/Visualization/raw/main/AFLAC_Wyatt_notag.pdf'
50
  file_path = "AFLAC_Wyatt_notag.pdf"
51
+ file_path1 = "USB_Golnaz_Alice.pdf"
52
+ if st.button('AFLAC_Wyatt'):
53
  with open(file_path,"rb") as f:
54
  base64_pdf = base64.b64encode(f.read()).decode('utf-8')
55
  pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf"></iframe>'
56
  st.markdown(pdf_display, unsafe_allow_html=True)
57
  visual_display = f'<iframe src="https://seetha-aflac-wyat.hf.space" frameborder="0" width="1000" height="500"></iframe>'
58
  st.markdown(visual_display, unsafe_allow_html=True)
59
+ elif st.button('USB_GOLNAZ_ALICE'):
60
+ with open(file_path1,"rb") as f:
61
+ base64_pdf = base64.b64encode(f.read()).decode('utf-8')
62
+ pdf_display = f'<iframe src="data:application/pdf;base64,{base64_pdf}" width="800" height="800" type="application/pdf"></iframe>'
63
+ st.markdown(pdf_display, unsafe_allow_html=True)
64
+ visual_display = f'<iframe src="https://seetha-usb-golnaz-alice.hf.space" frameborder="0" width="1000" height="500"></iframe>'
65
+ st.markdown(visual_display, unsafe_allow_html=True)
66
  # data = urllib.request.urlopen(target_url)
67
  # for line in data.read():
68
  # st.write(line)