danielle2003 commited on
Commit
33f411f
·
verified ·
1 Parent(s): cf08f51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1257,7 +1257,7 @@ def load_model():
1257
  st.error(f"Error loading model: {{e}}")
1258
  st.stop()
1259
 
1260
- model = load_model()
1261
 
1262
  # --- Streamlit Content Injection ---
1263
  # This section uses st.empty() to create a placeholder where our content
@@ -1350,6 +1350,7 @@ with streamlit_content_placeholder.container():
1350
  st.session_state.show_prediction = False
1351
  st.rerun()
1352
  if submitted:
 
1353
  if model is not None:
1354
 
1355
  # Show a loading spinner while processing
 
1257
  st.error(f"Error loading model: {{e}}")
1258
  st.stop()
1259
 
1260
+
1261
 
1262
  # --- Streamlit Content Injection ---
1263
  # This section uses st.empty() to create a placeholder where our content
 
1350
  st.session_state.show_prediction = False
1351
  st.rerun()
1352
  if submitted:
1353
+ model = load_model()
1354
  if model is not None:
1355
 
1356
  # Show a loading spinner while processing