Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -1
src/streamlit_app.py
CHANGED
@@ -212,7 +212,7 @@ def main_app():
|
|
212 |
st.write(summary)
|
213 |
|
214 |
if st.sidebar.button("Submit Feedback"):
|
215 |
-
|
216 |
img_path = save_temp_file(feedback_image, "img")
|
217 |
audio_path = save_temp_file(feedback_audio, "audio")
|
218 |
video_path = save_temp_file(feedback_video, "video")
|
@@ -222,6 +222,7 @@ def main_app():
|
|
222 |
place=place_to_search or "Unknown",
|
223 |
state=state,
|
224 |
district=district,
|
|
|
225 |
img_path=img_path,
|
226 |
audio_path=audio_path,
|
227 |
video_path=video_path
|
@@ -230,6 +231,7 @@ def main_app():
|
|
230 |
else:
|
231 |
st.sidebar.warning("Please enter your feedback text.")
|
232 |
|
|
|
233 |
# ====== UI Styling ======
|
234 |
st.set_page_config(page_title="Gyana Vedika", layout="wide")
|
235 |
|
|
|
212 |
st.write(summary)
|
213 |
|
214 |
if st.sidebar.button("Submit Feedback"):
|
215 |
+
if feedback_text.strip():
|
216 |
img_path = save_temp_file(feedback_image, "img")
|
217 |
audio_path = save_temp_file(feedback_audio, "audio")
|
218 |
video_path = save_temp_file(feedback_video, "video")
|
|
|
222 |
place=place_to_search or "Unknown",
|
223 |
state=state,
|
224 |
district=district,
|
225 |
+
text=feedback_text.strip(),
|
226 |
img_path=img_path,
|
227 |
audio_path=audio_path,
|
228 |
video_path=video_path
|
|
|
231 |
else:
|
232 |
st.sidebar.warning("Please enter your feedback text.")
|
233 |
|
234 |
+
|
235 |
# ====== UI Styling ======
|
236 |
st.set_page_config(page_title="Gyana Vedika", layout="wide")
|
237 |
|