hbchiu commited on
Commit
e536ade
·
verified ·
1 Parent(s): cdeb6d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -205,7 +205,7 @@ def voice_pipeline(audio_input, history, tts_lang):
205
  return history, None, "⚠️ Could not transcribe audio. Please try again."
206
 
207
  # Generate response from LLM + RAG
208
- reply = respond_to_message(transcript, history)
209
 
210
  # Update chat history
211
  history = history or []
@@ -221,7 +221,7 @@ def text_pipeline(text_input, history, tts_lang):
221
  if not text_input.strip():
222
  return history, None, ""
223
 
224
- reply = respond_to_message(text_input, history)
225
 
226
  history = history or []
227
  history.append({"role": "user", "content": text_input})
 
205
  return history, None, "⚠️ Could not transcribe audio. Please try again."
206
 
207
  # Generate response from LLM + RAG
208
+ reply = respond_to_message(transcript, history, tts_lang)
209
 
210
  # Update chat history
211
  history = history or []
 
221
  if not text_input.strip():
222
  return history, None, ""
223
 
224
+ reply = respond_to_message(text_input, history, tts_lang)
225
 
226
  history = history or []
227
  history.append({"role": "user", "content": text_input})