Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -6
src/streamlit_app.py
CHANGED
@@ -129,12 +129,12 @@ if st.button("Analyze"):
|
|
129 |
st.write("Audio saved at:", audio_path)
|
130 |
st.write("Exists:", os.path.exists(audio_path))
|
131 |
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
|
139 |
with st.spinner("Classifying accent..."):
|
140 |
# model_name = "dima806/english_accents_classification"
|
|
|
129 |
st.write("Audio saved at:", audio_path)
|
130 |
st.write("Exists:", os.path.exists(audio_path))
|
131 |
|
132 |
+
with st.spinner("Transcribing with Whisper..."):
|
133 |
+
whisper_model = whisper.load_model("base")
|
134 |
+
result = whisper_model.transcribe(audio_path)
|
135 |
+
transcription = result['text']
|
136 |
+
transcription = "Hello There"
|
137 |
+
pass
|
138 |
|
139 |
with st.spinner("Classifying accent..."):
|
140 |
# model_name = "dima806/english_accents_classification"
|