Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -21,7 +21,7 @@ st.title("🎙️ Speech Summarization with Moonshine ASR & LLM")
|
|
| 21 |
with st.sidebar:
|
| 22 |
st.header("⚙️ Settings")
|
| 23 |
vad_threshold = st.slider("VAD Threshold", 0.1, 0.9, 0.5)
|
| 24 |
-
model_name = st.selectbox("Moonshine Model", model_names)
|
| 25 |
llm_model = st.selectbox("LLM for Summarization", list(available_gguf_llms.keys()))
|
| 26 |
prompt_input = st.text_area("Custom Prompt", value="Summarize the transcript below.")
|
| 27 |
|
|
@@ -103,7 +103,7 @@ with tab3:
|
|
| 103 |
st.session_state.transcript = ""
|
| 104 |
|
| 105 |
for accumulated_transcript in transcribe_file(
|
| 106 |
-
st.session_state.audio_path, vad_threshold, model_name
|
| 107 |
):
|
| 108 |
st.session_state.transcript = accumulated_transcript
|
| 109 |
live_transcript_placeholder.text(accumulated_transcript)
|
|
|
|
| 21 |
with st.sidebar:
|
| 22 |
st.header("⚙️ Settings")
|
| 23 |
vad_threshold = st.slider("VAD Threshold", 0.1, 0.9, 0.5)
|
| 24 |
+
model_name = st.selectbox("Moonshine Model", model_names.keys())
|
| 25 |
llm_model = st.selectbox("LLM for Summarization", list(available_gguf_llms.keys()))
|
| 26 |
prompt_input = st.text_area("Custom Prompt", value="Summarize the transcript below.")
|
| 27 |
|
|
|
|
| 103 |
st.session_state.transcript = ""
|
| 104 |
|
| 105 |
for accumulated_transcript in transcribe_file(
|
| 106 |
+
st.session_state.audio_path, vad_threshold, model_names[model_name]
|
| 107 |
):
|
| 108 |
st.session_state.transcript = accumulated_transcript
|
| 109 |
live_transcript_placeholder.text(accumulated_transcript)
|