Daimon commited on
Commit
539b1b7
1 Parent(s): 1981bd4

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_data
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