m7mdal7aj commited on
Commit
76f3951
1 Parent(s): c6c0b0e

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +1 -1
my_model/tabs/run_inference.py CHANGED
@@ -48,7 +48,7 @@ class InferenceRunner(StateManager):
48
  """
49
  free_gpu_resources()
50
  answer = st.session_state.kbvqa.generate_answer(question, caption, detected_objects_str)
51
- prompt_length = model.current_prompt_length
52
  free_gpu_resources()
53
  return answer, prompt_length
54
 
 
48
  """
49
  free_gpu_resources()
50
  answer = st.session_state.kbvqa.generate_answer(question, caption, detected_objects_str)
51
+ prompt_length = st.session_state.kbvqa.current_prompt_length
52
  free_gpu_resources()
53
  return answer, prompt_length
54