Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -2
src/streamlit_app.py
CHANGED
|
@@ -77,7 +77,6 @@ with tab3:
|
|
| 77 |
if st.button("🎙️ Transcribe"):
|
| 78 |
if st.session_state.audio_path:
|
| 79 |
status_placeholder.text("Transcribing...")
|
| 80 |
-
# Use st.write_stream to auto-stream generator output
|
| 81 |
st.session_state.transcript = st.write_stream(
|
| 82 |
transcribe_file(st.session_state.audio_path, vad_threshold, model_name)
|
| 83 |
)
|
|
@@ -87,7 +86,7 @@ with tab3:
|
|
| 87 |
if st.button("📝 Summarize"):
|
| 88 |
if st.session_state.transcript:
|
| 89 |
status_placeholder.text("Summarizing...")
|
| 90 |
-
st.session_state.
|
| 91 |
summarize_transcript(st.session_state.transcript, llm_model, prompt_input)
|
| 92 |
)
|
| 93 |
|
|
|
|
| 77 |
if st.button("🎙️ Transcribe"):
|
| 78 |
if st.session_state.audio_path:
|
| 79 |
status_placeholder.text("Transcribing...")
|
|
|
|
| 80 |
st.session_state.transcript = st.write_stream(
|
| 81 |
transcribe_file(st.session_state.audio_path, vad_threshold, model_name)
|
| 82 |
)
|
|
|
|
| 86 |
if st.button("📝 Summarize"):
|
| 87 |
if st.session_state.transcript:
|
| 88 |
status_placeholder.text("Summarizing...")
|
| 89 |
+
st.session_state.summary = st.write_stream(
|
| 90 |
summarize_transcript(st.session_state.transcript, llm_model, prompt_input)
|
| 91 |
)
|
| 92 |
|