Spaces:
Runtime error
Runtime error
Update app.py
#1
by
satish99017
- opened
app.py
CHANGED
|
@@ -42,6 +42,8 @@ if len(audio) > 0:
|
|
| 42 |
temp_dir = tempfile.mkdtemp()
|
| 43 |
temp_file_path = os.path.join(temp_dir, 'temp_audio.mp3')
|
| 44 |
audio.export(temp_file_path, format="mp3")
|
|
|
|
|
|
|
| 45 |
|
| 46 |
transcript = transcribe_audio(temp_file_path)
|
| 47 |
st.write(transcript)
|
|
|
|
| 42 |
temp_dir = tempfile.mkdtemp()
|
| 43 |
temp_file_path = os.path.join(temp_dir, 'temp_audio.mp3')
|
| 44 |
audio.export(temp_file_path, format="mp3")
|
| 45 |
+
|
| 46 |
+
print(audio)
|
| 47 |
|
| 48 |
transcript = transcribe_audio(temp_file_path)
|
| 49 |
st.write(transcript)
|