Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,9 +48,10 @@ if __name__ == "__main__":
|
|
48 |
# audio_bytes = audio_file.read()
|
49 |
st.audio(uploaded_file, format='audio/wav')
|
50 |
|
51 |
-
wav_file = get_path_to_wav_format(uploaded_file)
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
55 |
|
56 |
|
|
|
48 |
# audio_bytes = audio_file.read()
|
49 |
st.audio(uploaded_file, format='audio/wav')
|
50 |
|
51 |
+
# wav_file = get_path_to_wav_format(uploaded_file)
|
52 |
+
with open(uploaded_file, 'rb') as wav_file:
|
53 |
+
# st.write(wav_file)
|
54 |
+
result = model.recognize(wav_file, langcode)
|
55 |
+
st.write(result)
|
56 |
|
57 |
|