text/test_translation.py

8 lines
205 B
Python
Raw Normal View History

from src.translation import translate_text
# 测试单个翻译功能
test_text = "Hello, how are you?"
print(f"原文: {test_text}")
translated = translate_text(test_text)
print(f"译文: {translated}")