Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ 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="IndicTrans2
|
7 |
") # English as target
|
8 |
|
9 |
# Supported languages and their model codes
|
|
|
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
|