Spaces:
Runtime error
Runtime error
HugoRDS7 commited on
Commit ·
3a1ba73
1
Parent(s): 7c246e2
Updated app.py 3 - rollback
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ st.header("BART-based Automatic Headline Generator")
|
|
| 13 |
|
| 14 |
st_model_load = st.text('Loading BART headline generator model...')
|
| 15 |
|
| 16 |
-
@st.
|
| 17 |
def load_model():
|
| 18 |
print("Loading model...")
|
| 19 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
|
|
| 13 |
|
| 14 |
st_model_load = st.text('Loading BART headline generator model...')
|
| 15 |
|
| 16 |
+
@st.cache(allow_output_mutation=True)
|
| 17 |
def load_model():
|
| 18 |
print("Loading model...")
|
| 19 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|