Soumen commited on
Commit
531fa94
1 Parent(s): 2dffa73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,9 +88,9 @@ st.title("Bangla and English Summarizer: Upload Images/Pdf or input texts to sum
88
  """ NLP Based Application with Streamlit """
89
  def change_photo_state():
90
  st.session_state["photo"]="done"
91
- message = st.sidebar.text_input("Type your text here!")
92
- uploaded_photo = st.sidebar.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
93
- camera_photo = st.sidebar.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
94
  if "photo" not in st.session_state:
95
  st.session_state["photo"]="not done"
96
  if st.session_state["photo"]=="done" or message:
 
88
  """ NLP Based Application with Streamlit """
89
  def change_photo_state():
90
  st.session_state["photo"]="done"
91
+ message = st.text_input("Type your text here!")
92
+ uploaded_photo = st.file_uploader("Upload your Images/PDF",type=['jpg','png','jpeg','pdf'], on_change=change_photo_state)
93
+ camera_photo = st.camera_input("Capture a photo to summarize: ", on_change=change_photo_state)
94
  if "photo" not in st.session_state:
95
  st.session_state["photo"]="not done"
96
  if st.session_state["photo"]=="done" or message: