Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,14 +64,17 @@ def main():
|
|
64 |
|
65 |
filename = save_and_play_audio(audio_recorder)
|
66 |
if filename is not None:
|
67 |
-
|
|
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
|
73 |
-
|
74 |
-
|
|
|
|
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
main()
|
|
|
64 |
|
65 |
filename = save_and_play_audio(audio_recorder)
|
66 |
if filename is not None:
|
67 |
+
try:
|
68 |
+
transcription = transcribe_audio(filename)
|
69 |
|
70 |
+
# Update the text area with new transcription
|
71 |
+
updated_transcriptions = f"{previous_transcriptions}\n{transcription}"
|
72 |
+
st.text_area("Transcriptions:", updated_transcriptions, height=400)
|
73 |
|
74 |
+
# Save the new transcription to file
|
75 |
+
save_transcription(transcription)
|
76 |
+
except:
|
77 |
+
st.write('Whisperer loading..')
|
78 |
|
79 |
if __name__ == "__main__":
|
80 |
main()
|