Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,6 +71,6 @@ if submit_button:
|
|
| 71 |
audio_data = np.frombuffer(pad_buffer(audio_output), dtype=np.int16)
|
| 72 |
#audio_bytes = audio_data.tobytes()
|
| 73 |
|
| 74 |
-
st.audio(
|
| 75 |
except Exception as e:
|
| 76 |
st.error(f"An error occurred: {e}")
|
|
|
|
| 71 |
audio_data = np.frombuffer(pad_buffer(audio_output), dtype=np.int16)
|
| 72 |
#audio_bytes = audio_data.tobytes()
|
| 73 |
|
| 74 |
+
st.audio(pad_buffer(audio_output), format="audio/wav")
|
| 75 |
except Exception as e:
|
| 76 |
st.error(f"An error occurred: {e}")
|