egezort commited on
Commit
82e6343
·
1 Parent(s): b9afd70

Add first page and links

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -167,6 +167,11 @@ if "images" not in st.session_state:
167
  ]
168
 
169
  st.title("Image Subject Comparison Tutorial")
 
 
 
 
 
170
  st.markdown(
171
  "This tutorial demonstrates rules for determining if two images depict the same subject. "
172
  "Answer each scenario to advance to the next one."
@@ -195,11 +200,13 @@ else:
195
  st.image(img1, caption="Image 1", use_container_width=True)
196
  else:
197
  st.error("Image 1 could not be loaded.")
 
198
  with col2:
199
  if img2:
200
  st.image(img2, caption="Image 2", use_container_width=True)
201
  else:
202
  st.error("Image 2 could not be loaded.")
 
203
 
204
  st.markdown("### Are these the same subject?")
205
 
 
167
  ]
168
 
169
  st.title("Image Subject Comparison Tutorial")
170
+ st.markdown(
171
+ "This is a small tutorial for Depictor. It is meant to provide examples for how to make "
172
+ "the decisions for the questions asked."
173
+ )
174
+ st.markdown("---")
175
  st.markdown(
176
  "This tutorial demonstrates rules for determining if two images depict the same subject. "
177
  "Answer each scenario to advance to the next one."
 
200
  st.image(img1, caption="Image 1", use_container_width=True)
201
  else:
202
  st.error("Image 1 could not be loaded.")
203
+ st.markdown(f"[🔗 View source]({scenario['image1_url']})")
204
  with col2:
205
  if img2:
206
  st.image(img2, caption="Image 2", use_container_width=True)
207
  else:
208
  st.error("Image 2 could not be loaded.")
209
+ st.markdown(f"[🔗 View source]({scenario['image2_url']})")
210
 
211
  st.markdown("### Are these the same subject?")
212