Update my_model/tabs/run_inference.py
Browse files
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 |
-
|
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")
|