Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
@@ -116,7 +116,7 @@ class InferenceRunner(StateManager):
|
|
116 |
# if not question:
|
117 |
# nested_col22.warning("Please select or enter a question.")
|
118 |
# else:
|
119 |
-
if question in [q for q, _ in qa_history]:
|
120 |
nested_col22.warning("This question has already been answered.")
|
121 |
else:
|
122 |
if nested_col22.button('Get Answer', key=f'answer_{image_key}', disabled=self.is_widget_disabled):
|
|
|
116 |
# if not question:
|
117 |
# nested_col22.warning("Please select or enter a question.")
|
118 |
# else:
|
119 |
+
if question in [q for q, _, _ in qa_history]:
|
120 |
nested_col22.warning("This question has already been answered.")
|
121 |
else:
|
122 |
if nested_col22.button('Get Answer', key=f'answer_{image_key}', disabled=self.is_widget_disabled):
|