Daimon commited on
Commit
2ed25e9
·
1 Parent(s): 1d39f13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.cache_resource
13
  def load_model():
14
  model = M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
15
  return model
 
9
 
10
  st.set_page_config(page_title="Translation Demo", page_icon=":milky_way:", layout="wide")
11
 
12
+ @st.cache
13
  def load_model():
14
  model = M2M100ForConditionalGeneration.from_pretrained("alirezamsh/small100")
15
  return model