Spaces:
Sleeping
Sleeping
File size: 235 Bytes
9439877 | 1 2 3 4 5 6 7 8 9 | import traceback
from transformers import pipeline
try:
pipe = pipeline('translation', model='Helsinki-NLP/opus-mt-en-ur')
except Exception as e:
with open('trans_error.txt', 'w') as f:
f.write(traceback.format_exc())
|