Mds21 commited on
Commit
ad7ecac
1 Parent(s): 2b25ede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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