mpolacek commited on
Commit
3273fee
·
verified ·
1 Parent(s): d0962d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -11,7 +11,11 @@ repo.git_pull()
11
 
12
  from scripts.model import Model
13
 
14
- model = Model()
 
 
 
 
15
 
16
  st.write("""
17
  # Czech Punctuation and Capitalization Model (CPCM)
 
11
 
12
  from scripts.model import Model
13
 
14
+ @st.cache_resource
15
+ def get_model():
16
+ return Model()
17
+
18
+ model = get_model()
19
 
20
  st.write("""
21
  # Czech Punctuation and Capitalization Model (CPCM)