Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,9 +68,9 @@ if submit_button:
|
|
| 68 |
# Assuming the output is in audio format
|
| 69 |
audio_output = response.outputs[0].data.audio.content
|
| 70 |
|
| 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}")
|
|
|
|
| 68 |
# Assuming the output is in audio format
|
| 69 |
audio_output = response.outputs[0].data.audio.content
|
| 70 |
|
| 71 |
+
#audio_data = np.frombuffer(pad_buffer(audio_output), dtype=np.int16)
|
| 72 |
+
#audio_bytes = audio_data.tobytes()
|
| 73 |
|
| 74 |
+
st.audio(audio_output, format="audio/wav")
|
| 75 |
except Exception as e:
|
| 76 |
st.error(f"An error occurred: {e}")
|