Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ def hindi_translate(text_):
|
|
17 |
# Decode the translation
|
18 |
hindi_translation = tokenizer.decode(translation[0], skip_special_tokens=True)
|
19 |
return hindi_translation
|
|
|
20 |
def en_hi_translate(text):
|
21 |
from googletrans import Translator
|
22 |
# Initialize the translator
|
|
|
17 |
# Decode the translation
|
18 |
hindi_translation = tokenizer.decode(translation[0], skip_special_tokens=True)
|
19 |
return hindi_translation
|
20 |
+
|
21 |
def en_hi_translate(text):
|
22 |
from googletrans import Translator
|
23 |
# Initialize the translator
|