Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,6 @@ def transcribe_audio(audio_bytes):
|
|
79 |
st.title("Audio to Text Transcription..")
|
80 |
|
81 |
audio_bytes = audio_recorder(pause_threshold=3.0, sample_rate=16_000)
|
82 |
-
st.write(audio_bytes)
|
83 |
-
|
84 |
if audio_bytes:
|
85 |
st.audio(audio_bytes, format="audio/wav")
|
86 |
|
@@ -92,4 +90,4 @@ if audio_bytes:
|
|
92 |
else:
|
93 |
st.write("Error: Failed to transcribe audio.")
|
94 |
else:
|
95 |
-
st.write("No audio recorded.")
|
|
|
79 |
st.title("Audio to Text Transcription..")
|
80 |
|
81 |
audio_bytes = audio_recorder(pause_threshold=3.0, sample_rate=16_000)
|
|
|
|
|
82 |
if audio_bytes:
|
83 |
st.audio(audio_bytes, format="audio/wav")
|
84 |
|
|
|
90 |
else:
|
91 |
st.write("Error: Failed to transcribe audio.")
|
92 |
else:
|
93 |
+
st.write("No audio recorded.")
|