Spaces:
Running
Running
facebook/m2m100_1.2B
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ lang_id = {
|
|
124 |
|
125 |
@st.cache(suppress_st_warning=True, allow_output_mutation=True)
|
126 |
def load_model(
|
127 |
-
pretrained_model: str = "
|
128 |
cache_dir: str = "models/",
|
129 |
):
|
130 |
tokenizer = M2M100Tokenizer.from_pretrained(pretrained_model, cache_dir=cache_dir)
|
|
|
124 |
|
125 |
@st.cache(suppress_st_warning=True, allow_output_mutation=True)
|
126 |
def load_model(
|
127 |
+
pretrained_model: str = "facebook/m2m100_1.2B",
|
128 |
cache_dir: str = "models/",
|
129 |
):
|
130 |
tokenizer = M2M100Tokenizer.from_pretrained(pretrained_model, cache_dir=cache_dir)
|