Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import io
|
|
9 |
|
10 |
st.set_page_config(page_title="Translation Demo", page_icon=":milky_way:", layout="wide")
|
11 |
|
12 |
-
@st.
|
13 |
def load_model():
|
14 |
return M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
|
15 |
|
|
|
9 |
|
10 |
st.set_page_config(page_title="Translation Demo", page_icon=":milky_way:", layout="wide")
|
11 |
|
12 |
+
@st.cache_resource
|
13 |
def load_model():
|
14 |
return M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
|
15 |
|