Spaces:
Running
Running
Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -244,7 +244,8 @@ class InferenceRunner(StateManager):
|
|
244 |
reload_detection_model = False
|
245 |
force_reload_full_model = False
|
246 |
|
247 |
-
if self.is_model_loaded and self.settings_changed:
|
|
|
248 |
self.col1.warning("Model settings have changed, please reload the model.. ")
|
249 |
# self.update_prev_state()
|
250 |
st.session_state.button_label = (
|
@@ -269,7 +270,6 @@ class InferenceRunner(StateManager):
|
|
269 |
load_fine_tuned_model = True
|
270 |
elif st.session_state.button_label == "Reload Model" and st.session_state['method'] != \
|
271 |
st.session_state['previous_state']['method']: # check if the model size have changed
|
272 |
-
self.col1.warning("Model settings have changed, please reload the model.. ")
|
273 |
force_reload_full_model = True
|
274 |
elif (self.is_model_loaded and st.session_state.kbvqa.detection_model !=
|
275 |
st.session_state['detection_model']):
|
|
|
244 |
reload_detection_model = False
|
245 |
force_reload_full_model = False
|
246 |
|
247 |
+
#if self.is_model_loaded and self.settings_changed:
|
248 |
+
if self.settings_changed:
|
249 |
self.col1.warning("Model settings have changed, please reload the model.. ")
|
250 |
# self.update_prev_state()
|
251 |
st.session_state.button_label = (
|
|
|
270 |
load_fine_tuned_model = True
|
271 |
elif st.session_state.button_label == "Reload Model" and st.session_state['method'] != \
|
272 |
st.session_state['previous_state']['method']: # check if the model size have changed
|
|
|
273 |
force_reload_full_model = True
|
274 |
elif (self.is_model_loaded and st.session_state.kbvqa.detection_model !=
|
275 |
st.session_state['detection_model']):
|