m7mdal7aj commited on
Commit
4c78312
·
verified ·
1 Parent(s): ea70d69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -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[-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)
@@ -140,7 +140,7 @@ def main():
140
 
141
 
142
  st.sidebar.title("Navigation")
143
- selection = st.sidebar.radio("Go to", ["Home", "Dataset Analysis", "Evaluation Results", "Run Inference", "Dissertation Report"])
144
  st.sidebar.write("More Pages will follow .. ")
145
 
146
  if selection == "Home":
@@ -168,6 +168,10 @@ def main():
168
  st.title("OK-VQA Dataset Analysis")
169
  st.write("This is a Place Holder until the contents are uploaded.")
170
 
 
 
 
 
171
 
172
  elif selection == "Run Inference":
173
  run_inference()
 
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[-11:]}', 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)
 
140
 
141
 
142
  st.sidebar.title("Navigation")
143
+ selection = st.sidebar.radio("Go to", ["Home", "Dataset Analysis", "Evaluation Results", "Finetuning and Evaluation Results", "Run Inference", "Dissertation Report"])
144
  st.sidebar.write("More Pages will follow .. ")
145
 
146
  if selection == "Home":
 
168
  st.title("OK-VQA Dataset Analysis")
169
  st.write("This is a Place Holder until the contents are uploaded.")
170
 
171
+ elif selection == "Finetuning and Evaluation Results":
172
+ st.title("Finetuning and Evaluation Results")
173
+ st.write("This is a Place Holder until the contents are uploaded.")
174
+
175
 
176
  elif selection == "Run Inference":
177
  run_inference()