Spaces:
Running
Running
Chandima Prabhath
commited on
Commit
·
e443eca
1
Parent(s):
df706dd
Remove fallback to response_text in response_audio on audio generation failure
Browse files
app.py
CHANGED
@@ -112,7 +112,6 @@ def response_audio(message_id, chat_id, prompt):
|
|
112 |
logging.debug(f"Removed audio file: {audio_file_path}")
|
113 |
else:
|
114 |
logging.debug("generate_voice_reply returned None, falling back to response_text")
|
115 |
-
response_text(message_id, chat_id, prompt=prompt)
|
116 |
except Exception as e:
|
117 |
logging.debug(f"Exception in response_audio: {e}")
|
118 |
send_message(message_id, chat_id, "There was an error generating the audio. Please try again later.")
|
|
|
112 |
logging.debug(f"Removed audio file: {audio_file_path}")
|
113 |
else:
|
114 |
logging.debug("generate_voice_reply returned None, falling back to response_text")
|
|
|
115 |
except Exception as e:
|
116 |
logging.debug(f"Exception in response_audio: {e}")
|
117 |
send_message(message_id, chat_id, "There was an error generating the audio. Please try again later.")
|