m7mdal7aj commited on
Commit
9023a92
1 Parent(s): 6844ec3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def image_qa_app(kbvqa):
61
 
62
  # Display and interact with each uploaded/selected image
63
  for image_key, image_data in st.session_state['images_data'].items():
64
- st.image(image_data['image'], caption=f'Uploaded Image: {image_key}', use_column_width=True)
65
  if not image_data['analysis_done']:
66
  if st.button('Analyze Image', key=f'analyze_{image_key}'):
67
  caption, detected_objects_str = analyze_image(image_data['image'], kbvqa)
@@ -149,7 +149,7 @@ def main():
149
 
150
  st.sidebar.title("Navigation")
151
  selection = st.sidebar.radio("Go to", ["Home", "Dataset Analysis", "Evaluation Results", "Run Inference", "Dissertation Report"])
152
- st.write("More Pages will follow .. ")
153
 
154
  if selection == "Home":
155
  st.title("MultiModal Learning for Knowledg-Based Visual Question Answering")
 
61
 
62
  # Display and interact with each uploaded/selected image
63
  for image_key, image_data in st.session_state['images_data'].items():
64
+ st.image(image_data['image'], caption=f'Uploaded Image: {image_key[-8:]}', use_column_width=True)
65
  if not image_data['analysis_done']:
66
  if st.button('Analyze Image', key=f'analyze_{image_key}'):
67
  caption, detected_objects_str = analyze_image(image_data['image'], kbvqa)
 
149
 
150
  st.sidebar.title("Navigation")
151
  selection = st.sidebar.radio("Go to", ["Home", "Dataset Analysis", "Evaluation Results", "Run Inference", "Dissertation Report"])
152
+ st.sidebar.write("More Pages will follow .. ")
153
 
154
  if selection == "Home":
155
  st.title("MultiModal Learning for Knowledg-Based Visual Question Answering")