Seetha commited on
Commit
1780adc
1 Parent(s): fa99993

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -49,10 +49,11 @@ target_url = 'https://huggingface.co/datasets/Seetha/Visualization/raw/main/AFLA
49
  if st.button('PDF1'):
50
  data = urllib.request.urlopen(target_url)
51
  if data is not None:
52
- reader = PdfReader(uploaded_file)
53
  for page in reader.pages:
54
  text = page.extract_text()
55
  text_list.append(text)
 
56
  else:
57
  st.error("Please upload your own PDF to be analyzed")
58
  st.stop()
 
49
  if st.button('PDF1'):
50
  data = urllib.request.urlopen(target_url)
51
  if data is not None:
52
+ reader = PdfReader(data)
53
  for page in reader.pages:
54
  text = page.extract_text()
55
  text_list.append(text)
56
+ st.write(text_list)
57
  else:
58
  st.error("Please upload your own PDF to be analyzed")
59
  st.stop()