Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -118,18 +118,18 @@ class InferenceRunner(StateManager):
|
|
118 |
self.image_qa_app(self.get_model())
|
119 |
|
120 |
if load_fine_tuned_model:
|
121 |
-
st.write("TEXTS")
|
122 |
free_gpu_resources()
|
123 |
self.load_model()
|
124 |
|
125 |
elif fine_tuned_model_already_loaded:
|
|
|
126 |
self.col1.text("Model already loaded and no settings were changed:)")
|
127 |
|
128 |
elif reload_detection_model:
|
129 |
free_gpu_resources()
|
130 |
-
|
131 |
self.reload_detection_model()
|
132 |
elif force_reload_full_model:
|
|
|
133 |
self.force_reload_model()
|
134 |
|
135 |
elif st.session_state.method == "In-Context Learning (n-shots)":
|
|
|
118 |
self.image_qa_app(self.get_model())
|
119 |
|
120 |
if load_fine_tuned_model:
|
|
|
121 |
free_gpu_resources()
|
122 |
self.load_model()
|
123 |
|
124 |
elif fine_tuned_model_already_loaded:
|
125 |
+
free_gpu_resources()
|
126 |
self.col1.text("Model already loaded and no settings were changed:)")
|
127 |
|
128 |
elif reload_detection_model:
|
129 |
free_gpu_resources()
|
|
|
130 |
self.reload_detection_model()
|
131 |
elif force_reload_full_model:
|
132 |
+
free_gpu_resources()
|
133 |
self.force_reload_model()
|
134 |
|
135 |
elif st.session_state.method == "In-Context Learning (n-shots)":
|