Tonic commited on
Commit
4ec9fa2
1 Parent(s): cbb63b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -375,7 +375,7 @@ def process_and_query(input_language=None, audio_input=None, image_input=None, t
375
  image_description = ""
376
  markdown_output = ""
377
  image_text = ""
378
- translated_response = ""
379
  audio_file_path = ""
380
  # Debugging print statement
381
  print(f"Image Input Type: {type(image_input)}, Audio Input Type: {type(audio_input)}")
@@ -430,7 +430,7 @@ def process_and_query(input_language=None, audio_input=None, image_input=None, t
430
 
431
  # Convert translated text to speech and get both audio file and text
432
  target_language = "English" # Set the target language for the speech
433
- audio_file_path = convert_text_to_speech(final_response, target_language, input_language)
434
 
435
  # Evaluate hallucination
436
  hallucination_label = evaluate_hallucination(final_response, summary)
 
375
  image_description = ""
376
  markdown_output = ""
377
  image_text = ""
378
+ translated_text = ""
379
  audio_file_path = ""
380
  # Debugging print statement
381
  print(f"Image Input Type: {type(image_input)}, Audio Input Type: {type(audio_input)}")
 
430
 
431
  # Convert translated text to speech and get both audio file and text
432
  target_language = "English" # Set the target language for the speech
433
+ audio_file_path, translated_text = convert_text_to_speech(final_response, target_language, input_language)
434
 
435
  # Evaluate hallucination
436
  hallucination_label = evaluate_hallucination(final_response, summary)