Spaces:
Running
Running
File size: 449 Bytes
8551297 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from services.translator import TranslationService
print("Testing translation models...")
translator = TranslationService()
test_text = "Hello, how are you?"
print(f"Original text: {test_text}")
try:
result = translator.translate(test_text, 'en-hi')
print(f"Translated to Hindi: {result}")
print("Model loaded successfully!")
except Exception as e:
print(f"Error loading model: {e}")
import traceback
traceback.print_exc() |