m7mdal7aj commited on
Commit
33dd05f
1 Parent(s): 6040c77

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +2 -1
my_model/tabs/run_inference.py CHANGED
@@ -301,7 +301,8 @@ class InferenceRunner(StateManager):
301
 
302
  st.write(st.session_state['method'])
303
  st.write(st.session_state['previous_state']['method'])
304
- st.write(st.session_state['kbvqa'].kbvqa_model_name)
 
305
 
306
  if self.is_model_loaded:
307
  free_gpu_resources()
 
301
 
302
  st.write(st.session_state['method'])
303
  st.write(st.session_state['previous_state']['method'])
304
+ if st.session_state['kbvqa'] is not None:
305
+ st.write(st.session_state['kbvqa'].kbvqa_model_name)
306
 
307
  if self.is_model_loaded:
308
  free_gpu_resources()