Spaces:
Sleeping
Sleeping
Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -246,7 +246,7 @@ class InferenceRunner(StateManager):
|
|
246 |
|
247 |
if self.is_model_loaded and self.settings_changed:
|
248 |
self.col1.warning("Model settings have changed, please reload the model, this will take a second .. ")
|
249 |
-
|
250 |
st.session_state.button_label = (
|
251 |
"Reload Model" if (self.is_model_loaded and
|
252 |
st.session_state.kbvqa.detection_model != st.session_state['detection_model']) or
|
|
|
246 |
|
247 |
if self.is_model_loaded and self.settings_changed:
|
248 |
self.col1.warning("Model settings have changed, please reload the model, this will take a second .. ")
|
249 |
+
# self.update_prev_state()
|
250 |
st.session_state.button_label = (
|
251 |
"Reload Model" if (self.is_model_loaded and
|
252 |
st.session_state.kbvqa.detection_model != st.session_state['detection_model']) or
|