chethu commited on
Commit
4cfe5cf
1 Parent(s): 63116e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -14,13 +14,14 @@ def main():
14
  if st.button("Submit"):
15
  processed_image, text, audio = get_predictions(uploaded_image)
16
 
17
- st.subheader("Detected Objects")
18
  st.image(processed_image, use_column_width=True)
19
 
20
- st.subheader("Predicted Text")
21
- st.write(text)
22
 
23
- st.subheader("Audio Output")
 
24
  if isinstance(audio, tuple):
25
  sample_rate, audio_data = audio
26
  st.audio(audio_data, format='audio/wav', sample_rate=sample_rate)
 
14
  if st.button("Submit"):
15
  processed_image, text, audio = get_predictions(uploaded_image)
16
 
17
+ st.subheader("Output image with predicted instances")
18
  st.image(processed_image, use_column_width=True)
19
 
20
+ st.subheader("Textual Description")
21
+ st.write(text, "Narration in Text")
22
 
23
+
24
+ st.subheader("Audio Narration")
25
  if isinstance(audio, tuple):
26
  sample_rate, audio_data = audio
27
  st.audio(audio_data, format='audio/wav', sample_rate=sample_rate)