Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def translate_speech(audio_input):
|
|
39 |
# Remove padding tokens
|
40 |
translated_text_str = translated_text_str.replace("<pad>", "").strip()
|
41 |
|
42 |
-
|
43 |
else:
|
44 |
print("The translated text does not contain 'generated_token_ids'")
|
45 |
return
|
|
|
39 |
# Remove padding tokens
|
40 |
translated_text_str = translated_text_str.replace("<pad>", "").strip()
|
41 |
|
42 |
+
print(f"Translated text string: {translated_text_str}") # Print the translated text string
|
43 |
else:
|
44 |
print("The translated text does not contain 'generated_token_ids'")
|
45 |
return
|