Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -4
src/streamlit_app.py
CHANGED
@@ -113,10 +113,10 @@ if st.button("Analyze"):
|
|
113 |
# pass
|
114 |
|
115 |
with st.spinner("Transcribing with Whisper..."):
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
transcription = "Hello There"
|
120 |
# pass
|
121 |
|
122 |
with st.spinner("Classifying accent..."):
|
|
|
113 |
# pass
|
114 |
|
115 |
with st.spinner("Transcribing with Whisper..."):
|
116 |
+
whisper_model = whisper.load_model("base")
|
117 |
+
result = whisper_model.transcribe(audio_path)
|
118 |
+
transcription = result['text']
|
119 |
+
# transcription = "Hello There"
|
120 |
# pass
|
121 |
|
122 |
with st.spinner("Classifying accent..."):
|