m7mdal7aj commited on
Commit
6a8ed60
1 Parent(s): 0da5148

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +7 -6
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
- st.write(st.session_state.kbvqa)
118
- st.write(st.session_state.kbvqa.all_models_loaded)
119
- st.write(st.session_state.kbvqa.all_models_loaded())
120
- st.write(st.session_state.kbvqa)
121
- if state_manager.is_model_loaded() and st.session_state.kbvqa.all_models_loaded:
122
- image_qa_app(state_manager.get_model())
 
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