Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -114,12 +114,13 @@ def run_inference():
|
|
114 |
else:
|
115 |
state_manager.reload_detection_model()
|
116 |
st.success("Model reloaded with updated settings and ready for inference.")
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
|
|
123 |
else:
|
124 |
st.write('Model is not ready yet, will be updated later.')
|
125 |
|
|
|
114 |
else:
|
115 |
state_manager.reload_detection_model()
|
116 |
st.success("Model reloaded with updated settings and ready for inference.")
|
117 |
+
|
118 |
+
if state_manager.is_model_loaded() and st.session_state.kbvqa.all_models_loaded:
|
119 |
+
image_qa_app(state_manager.get_model())
|
120 |
+
|
121 |
+
|
122 |
+
st.write(st.session_state.kbvqa.all_models_loaded)
|
123 |
+
|
124 |
else:
|
125 |
st.write('Model is not ready yet, will be updated later.')
|
126 |
|