Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
@@ -434,8 +434,8 @@ def main():
|
|
434 |
- 5 interest combinations
|
435 |
""")
|
436 |
|
437 |
-
|
438 |
-
|
439 |
with st.spinner("Loading AI model... Please wait..."):
|
440 |
model, tokenizer = load_or_train_model()
|
441 |
if model is None or tokenizer is None:
|
|
|
434 |
- 5 interest combinations
|
435 |
""")
|
436 |
|
437 |
+
# Load or train model
|
438 |
+
if 'model' not in st.session_state:
|
439 |
with st.spinner("Loading AI model... Please wait..."):
|
440 |
model, tokenizer = load_or_train_model()
|
441 |
if model is None or tokenizer is None:
|