m7mdal7aj commited on
Commit
3b98e5e
1 Parent(s): 125b7f0

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +4 -3
my_model/tabs/run_inference.py CHANGED
@@ -292,14 +292,15 @@ class InferenceRunner(StateManager):
292
  st.session_state['time_taken_to_load_model'] = int(time.time() - t1)
293
  st.session_state['loading_in_progress'] = False
294
  st.session_state['model_loaded'] = True
295
-
296
- st.write(st.session_state['method'])
297
- st.write(st.session_state['previous_state']['method'])
298
 
299
  elif st.session_state.method == "Vision-Language Embeddings Alignment":
300
  self.col1.warning(
301
  f'Model using {st.session_state.method} is desgined but requires large scale data and multiple '
302
  f'high-end GPUs, implementation will be explored in the future.')
 
 
 
 
303
  if self.is_model_loaded:
304
  free_gpu_resources()
305
  st.session_state['loading_in_progress'] = False
 
292
  st.session_state['time_taken_to_load_model'] = int(time.time() - t1)
293
  st.session_state['loading_in_progress'] = False
294
  st.session_state['model_loaded'] = True
 
 
 
295
 
296
  elif st.session_state.method == "Vision-Language Embeddings Alignment":
297
  self.col1.warning(
298
  f'Model using {st.session_state.method} is desgined but requires large scale data and multiple '
299
  f'high-end GPUs, implementation will be explored in the future.')
300
+
301
+ st.write(st.session_state['method'])
302
+ st.write(st.session_state['previous_state']['method'])
303
+
304
  if self.is_model_loaded:
305
  free_gpu_resources()
306
  st.session_state['loading_in_progress'] = False