Update app.py
Browse files
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.
|
92 |
-
uploaded_photo = st.
|
93 |
-
camera_photo = st.
|
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:
|