Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -242,7 +242,9 @@ class InferenceRunner(StateManager):
|
|
242 |
if self.is_model_loaded and self.settings_changed:
|
243 |
self.col1.warning("Model settings have changed, please reload the model, this will take a second .. ")
|
244 |
self.update_prev_state()
|
245 |
-
st.session_state.button_label = "Reload Model" if self.is_model_loaded
|
|
|
|
|
246 |
|
247 |
with self.col1:
|
248 |
if st.session_state.method == "7b-Fine-Tuned Model" or st.session_state.method == "13b-Fine-Tuned Model":
|
|
|
242 |
if self.is_model_loaded and self.settings_changed:
|
243 |
self.col1.warning("Model settings have changed, please reload the model, this will take a second .. ")
|
244 |
self.update_prev_state()
|
245 |
+
st.session_state.button_label = "Reload Model" if (self.is_model_loaded
|
246 |
+
and st.session_state.kbvqa.detection_model != st.session_state['detection_model'])
|
247 |
+
and self.dettings_changed() else "Load Model"
|
248 |
|
249 |
with self.col1:
|
250 |
if st.session_state.method == "7b-Fine-Tuned Model" or st.session_state.method == "13b-Fine-Tuned Model":
|