Spaces:
Sleeping
Sleeping
Update my_model/tabs/run_inference.py
Browse files
my_model/tabs/run_inference.py
CHANGED
|
@@ -90,12 +90,14 @@ class InferenceRunner(StateManager):
|
|
| 90 |
if st.button('Analyze Image', key=f'analyze_{image_key}', on_click=self.disable_widgets, disabled=self.is_widget_disabled):
|
| 91 |
|
| 92 |
caption, detected_objects_str, image_with_boxes = self.analyze_image(image_data['image'])
|
|
|
|
| 93 |
self.update_image_data(image_key, caption, detected_objects_str, True)
|
|
|
|
| 94 |
st.session_state['loading_in_progress'] = False
|
| 95 |
|
| 96 |
# Initialize qa_history for each image
|
| 97 |
qa_history = image_data.get('qa_history', [])
|
| 98 |
-
|
| 99 |
if image_data['analysis_done']:
|
| 100 |
st.session_state['loading_in_progress'] = False
|
| 101 |
sample_questions = config.SAMPLE_QUESTIONS.get(image_key, [])
|
|
|
|
| 90 |
if st.button('Analyze Image', key=f'analyze_{image_key}', on_click=self.disable_widgets, disabled=self.is_widget_disabled):
|
| 91 |
|
| 92 |
caption, detected_objects_str, image_with_boxes = self.analyze_image(image_data['image'])
|
| 93 |
+
st.text("AAAAA")
|
| 94 |
self.update_image_data(image_key, caption, detected_objects_str, True)
|
| 95 |
+
st.text("BBBBB")
|
| 96 |
st.session_state['loading_in_progress'] = False
|
| 97 |
|
| 98 |
# Initialize qa_history for each image
|
| 99 |
qa_history = image_data.get('qa_history', [])
|
| 100 |
+
st.text('analysis done ?',image_data['analysis_done'])
|
| 101 |
if image_data['analysis_done']:
|
| 102 |
st.session_state['loading_in_progress'] = False
|
| 103 |
sample_questions = config.SAMPLE_QUESTIONS.get(image_key, [])
|