Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
next-social
/
9fo912
like
0
Runtime error
App
Files
Files
Community
00c92ee
9fo912
/
trans_test.py
pengdaqian
fix more
49226f5
over 1 year ago
raw
Copy download link
history
blame
166 Bytes
from
trans_google
import
google_translator
translator = google_translator()
translate_text = translator.translate(
'Hello World'
, lang_tgt=
'zh'
)
print
(translate_text)