Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
| 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)
|