Spaces:
Running
Running
Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -115,7 +115,7 @@ class InferenceRunner(StateManager):
|
|
115 |
free_gpu_resources()
|
116 |
self.image_qa_app(self.get_model())
|
117 |
|
118 |
-
|
119 |
free_gpu_resources()
|
120 |
self.load_model()
|
121 |
|
|
|
115 |
free_gpu_resources()
|
116 |
self.image_qa_app(self.get_model())
|
117 |
|
118 |
+
if load_fine_tuned_model:
|
119 |
free_gpu_resources()
|
120 |
self.load_model()
|
121 |
|