m7mdal7aj commited on
Commit
904c909
1 Parent(s): 3b61686

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +13 -13
my_model/tabs/run_inference.py CHANGED
@@ -115,19 +115,19 @@ class InferenceRunner(StateManager):
115
  free_gpu_resources()
116
  self.image_qa_app(self.get_model())
117
 
118
- elif load_fine_tuned_model:
119
- free_gpu_resources()
120
- self.load_model()
121
-
122
- elif fine_tuned_model_already_loaded:
123
- self.col1.text("Model already loaded and no settings were changed:)")
124
-
125
- elif reload_detection_model:
126
- free_gpu_resources()
127
-
128
- self.reload_detection_model()
129
- elif force_reload_full_model:
130
- self.force_reload_model()
131
 
132
  elif st.session_state.method == "In-Context Learning (n-shots)":
133
  self.col1.warning(f'Model using {st.session_state.method} is not deployed yet, will be ready later.')
 
115
  free_gpu_resources()
116
  self.image_qa_app(self.get_model())
117
 
118
+ elif load_fine_tuned_model:
119
+ free_gpu_resources()
120
+ self.load_model()
121
+
122
+ elif fine_tuned_model_already_loaded:
123
+ self.col1.text("Model already loaded and no settings were changed:)")
124
+
125
+ elif reload_detection_model:
126
+ free_gpu_resources()
127
+
128
+ self.reload_detection_model()
129
+ elif force_reload_full_model:
130
+ self.force_reload_model()
131
 
132
  elif st.session_state.method == "In-Context Learning (n-shots)":
133
  self.col1.warning(f'Model using {st.session_state.method} is not deployed yet, will be ready later.')