Soumen commited on
Commit
75f59ae
·
1 Parent(s): 9f38d12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -83,7 +83,7 @@ def bansum(text):
83
  text_output = out[0]["summary_text"]
84
  st.success(text_output)
85
  global Summarize
86
- Summarize=True
87
  #@st.cache
88
  def main():
89
  import streamlit as st
@@ -102,8 +102,8 @@ def main():
102
  camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
103
  if c2.button("Stop camera"):
104
  CaptureImage =False
105
- #if c3.button("Upload Images/PDFs"):
106
- uploaded_photo = c3.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
107
  #Summarize=True
108
  if st.session_state["photo"]=="done" or message:
109
  if uploaded_photo and uploaded_photo.type=='application/pdf':
 
83
  text_output = out[0]["summary_text"]
84
  st.success(text_output)
85
  global Summarize
86
+ #Summarize=True
87
  #@st.cache
88
  def main():
89
  import streamlit as st
 
102
  camera_photo = c2.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
103
  if c2.button("Stop camera"):
104
  CaptureImage =False
105
+ if c3.button("Upload Images/PDFs"):
106
+ uploaded_photo = c3.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
107
  #Summarize=True
108
  if st.session_state["photo"]=="done" or message:
109
  if uploaded_photo and uploaded_photo.type=='application/pdf':