jeevitha-app commited on
Commit
dcdf4e1
·
verified ·
1 Parent(s): ba89f04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,7 +3,8 @@ from transformers import pipeline
3
  from langdetect import detect
4
 
5
  # Load translation pipeline (you can change to another model)
6
- translator = pipeline("translation", model="Helsinki-NLP/opus-mt-mul-en") # English as target
 
7
 
8
  # Supported languages and their model codes
9
  language_models = {
 
3
  from langdetect import detect
4
 
5
  # Load translation pipeline (you can change to another model)
6
+ translator = pipeline("translation", model="IndicTrans2
7
+ ") # English as target
8
 
9
  # Supported languages and their model codes
10
  language_models = {