m7mdal7aj commited on
Commit
b85f89f
1 Parent(s): 43e5534

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
@@ -122,7 +122,7 @@ class InferenceRunner(StateManager):
122
  answer, prompt_length = self.answer_question(image_data['caption'], image_data['detected_objects_str'], question)
123
  st.session_state['loading_in_progress'] = False
124
  self.add_to_qa_history(image_key, question, answer, prompt_length)
125
- nested_col22.text(qa_history)
126
  # Display Q&A history and prompts lengths for each image
127
  for num, (q, a, p) in enumerate(qa_history):
128
  nested_col22.text(f"Q{num+1}: {q}\nA{num+1}: {a}\nPrompt Length: {p}\n")
 
122
  answer, prompt_length = self.answer_question(image_data['caption'], image_data['detected_objects_str'], question)
123
  st.session_state['loading_in_progress'] = False
124
  self.add_to_qa_history(image_key, question, answer, prompt_length)
125
+
126
  # Display Q&A history and prompts lengths for each image
127
  for num, (q, a, p) in enumerate(qa_history):
128
  nested_col22.text(f"Q{num+1}: {q}\nA{num+1}: {a}\nPrompt Length: {p}\n")