Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,11 @@ repo.git_pull()
|
|
| 11 |
|
| 12 |
from scripts.model import Model
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|