7H4M3R commited on
Commit
1834a02
·
verified ·
1 Parent(s): dc1889a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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
- # 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"
 
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"