add audio player in result tab
Browse files- src/streamlit_app.py +6 -0
src/streamlit_app.py
CHANGED
|
@@ -73,6 +73,12 @@ with tab2:
|
|
| 73 |
|
| 74 |
with tab3:
|
| 75 |
st.subheader("Transcription & Summary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
status_placeholder = st.empty()
|
| 77 |
status_placeholder.text(st.session_state.get('status', ''))
|
| 78 |
|
|
|
|
| 73 |
|
| 74 |
with tab3:
|
| 75 |
st.subheader("Transcription & Summary")
|
| 76 |
+
|
| 77 |
+
# Display audio player if audio is available
|
| 78 |
+
if st.session_state.audio_path:
|
| 79 |
+
st.markdown("### 🔊 Audio Preview")
|
| 80 |
+
st.audio(st.session_state.audio_path)
|
| 81 |
+
|
| 82 |
status_placeholder = st.empty()
|
| 83 |
status_placeholder.text(st.session_state.get('status', ''))
|
| 84 |
|