Pijush2023 commited on
Commit
a880822
·
verified ·
1 Parent(s): cac7b9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -212,7 +212,8 @@ def handle_mode_selection(mode, chat_history, question):
212
  # Voice to Voice mode: Generate the response using Eleven Labs and return audio without showing text
213
  response = get_response(question) # Get the response text (can be omitted if not needed for debugging)
214
  audio_path = generate_audio_elevenlabs(response) # Convert the response to audio
215
- chat_history.append((question, "[Voice Response]")) # Log that a voice response was generated (optional)
 
216
  return chat_history, "", audio_path
217
 
218
 
 
212
  # Voice to Voice mode: Generate the response using Eleven Labs and return audio without showing text
213
  response = get_response(question) # Get the response text (can be omitted if not needed for debugging)
214
  audio_path = generate_audio_elevenlabs(response) # Convert the response to audio
215
+ #chat_history.append((question, "[Voice Response]")) # Log that a voice response was generated (optional)
216
+ chat_history.append(("[Voice Input]", "[Voice Response]"))
217
  return chat_history, "", audio_path
218
 
219