Leo Liu
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,6 +116,8 @@ def main():
|
|
| 116 |
with open(temp_audio_path, "wb") as f:
|
| 117 |
f.write(uploaded_file.getbuffer())
|
| 118 |
|
|
|
|
|
|
|
| 119 |
with st.spinner('🔄 Processing your audio, please wait...'):
|
| 120 |
transcript = transcribe_audio(temp_audio_path)
|
| 121 |
quality_rating = rate_quality(transcript)
|
|
|
|
| 116 |
with open(temp_audio_path, "wb") as f:
|
| 117 |
f.write(uploaded_file.getbuffer())
|
| 118 |
|
| 119 |
+
st.audio(uploaded_file, format="audio/wav")
|
| 120 |
+
|
| 121 |
with st.spinner('🔄 Processing your audio, please wait...'):
|
| 122 |
transcript = transcribe_audio(temp_audio_path)
|
| 123 |
quality_rating = rate_quality(transcript)
|