Spaces:
Running
Running
conditions
Browse files
app.py
CHANGED
@@ -8,10 +8,12 @@ audio_to_text = pipeline("automatic-speech-recognition")
|
|
8 |
|
9 |
audio_file = st.file_uploader("Upload an audio file", type=["wav", "mp3", "ogg"])
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
st.write("Here is the text:")
|
14 |
-
st.write(text)
|
15 |
|
16 |
|
17 |
|
|
|
8 |
|
9 |
audio_file = st.file_uploader("Upload an audio file", type=["wav", "mp3", "ogg"])
|
10 |
|
11 |
+
if audio_file:
|
12 |
+
text = audio_to_text(audio_file)
|
13 |
+
if text:
|
14 |
+
st.write("Here is the text:")
|
15 |
+
st.write(text)
|
16 |
|
|
|
|
|
17 |
|
18 |
|
19 |
|