Tonic commited on
Commit
ea5be1b
1 Parent(s): 53714db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -489,7 +489,7 @@ def process_and_query(input_language=None, audio_input=None, image_input=None, t
489
 
490
  # Convert translated text to speech and get both audio file and text
491
  target_language = "eng" # Set the target language for the speech
492
- audio_output, translated_text = convert_text_to_speech(final_response, target_language, language_code)
493
 
494
  # Evaluate hallucination
495
  hallucination_label = evaluate_hallucination(final_response, summary)
 
489
 
490
  # Convert translated text to speech and get both audio file and text
491
  target_language = "eng" # Set the target language for the speech
492
+ audio_output, translated_text = convert_text_to_speech(final_response, target_language, input_language)
493
 
494
  # Evaluate hallucination
495
  hallucination_label = evaluate_hallucination(final_response, summary)