Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,12 @@ language_options = {
|
|
8 |
"Spanish": "Helsinki-NLP/opus-mt-en-es",
|
9 |
"Italian": "Helsinki-NLP/opus-mt-en-it",
|
10 |
"Dutch": "Helsinki-NLP/opus-mt-en-nl",
|
11 |
-
"Urdu": "Helsinki-NLP/opus-mt-en-ur",
|
12 |
-
|
|
|
13 |
}
|
14 |
|
|
|
15 |
# Function to load the model based on the selected language
|
16 |
@st.cache_resource
|
17 |
def load_model(model_name):
|
|
|
8 |
"Spanish": "Helsinki-NLP/opus-mt-en-es",
|
9 |
"Italian": "Helsinki-NLP/opus-mt-en-it",
|
10 |
"Dutch": "Helsinki-NLP/opus-mt-en-nl",
|
11 |
+
"Urdu": "Helsinki-NLP/opus-mt-en-ur",
|
12 |
+
"Punjabi": "Helsinki-NLP/opus-mt-en-pa",
|
13 |
+
"Pashto": "Helsinki-NLP/opus-mt-en-ps",
|
14 |
}
|
15 |
|
16 |
+
|
17 |
# Function to load the model based on the selected language
|
18 |
@st.cache_resource
|
19 |
def load_model(model_name):
|