Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def image_qa_app(kbvqa):
|
|
80 |
if st.session_state.get('current_image') and not st.session_state['analysis_done']:
|
81 |
if st.button('Analyze Image'):
|
82 |
# Perform analysis on the image
|
83 |
-
caption,
|
84 |
st.session_state['analysis_done'] = True
|
85 |
st.session_state['processed_image'] = copy.deepcopy(st.session_state['current_image'])
|
86 |
|
|
|
80 |
if st.session_state.get('current_image') and not st.session_state['analysis_done']:
|
81 |
if st.button('Analyze Image'):
|
82 |
# Perform analysis on the image
|
83 |
+
caption, detected_objects_str = analyze_image(st.session_state['current_image'], kbvqa)
|
84 |
st.session_state['analysis_done'] = True
|
85 |
st.session_state['processed_image'] = copy.deepcopy(st.session_state['current_image'])
|
86 |
|