uasername commited on
Commit
0b7ec94
·
verified ·
1 Parent(s): 4d68d72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -82,9 +82,6 @@ def text_to_speech(text: str) -> AgentAudio:
82
 
83
  #return AgentAudio(AUDIO_OUTPUT_PATH)
84
 
85
- # Read the MP3 bytes directly
86
- with open(AUDIO_OUTPUT_PATH, "rb") as f:
87
- audio_bytes = f.read()
88
 
89
  # Return AgentAudio, but store the raw bytes
90
  return AgentAudio(audio_bytes) # Not a path anymore
 
82
 
83
  #return AgentAudio(AUDIO_OUTPUT_PATH)
84
 
 
 
 
85
 
86
  # Return AgentAudio, but store the raw bytes
87
  return AgentAudio(audio_bytes) # Not a path anymore