Spaces:
Running
Running
minor ui fix
Browse files- pages/Gallery.py +4 -3
pages/Gallery.py
CHANGED
@@ -91,7 +91,7 @@ class GalleryApp:
|
|
91 |
nodes.append(Node(id=items.loc[idx, 'image_id'],
|
92 |
# label=str(items.loc[idx, 'model_name']),
|
93 |
# title=f"model name: {items.loc[idx, 'model_name']}\nmodelVersion name: {items.loc[idx, 'modelVersion_name']}\nclip score: {items.loc[idx, 'clip_score']}\nmcos score: {items.loc[idx, 'mcos_score']}\npopularity: {items.loc[idx, 'model_download_count']}",
|
94 |
-
title=" ",
|
95 |
size=20,
|
96 |
shape='image',
|
97 |
image=f"https://modelcofferbucket.s3-accelerate.amazonaws.com/{items.loc[idx, 'image_id']}.png",
|
@@ -283,7 +283,7 @@ class GalleryApp:
|
|
283 |
if has_selection:
|
284 |
checkout = st.button('Check out selections ➡️', use_container_width=True, type='primary', on_click=self.switch_to_checkout, args=(tag, selected_prompt))
|
285 |
else:
|
286 |
-
st.button(':orange[👇 **Select images
|
287 |
try:
|
288 |
self.sidebar(items, prompt_id, note)
|
289 |
except:
|
@@ -384,7 +384,8 @@ class GalleryApp:
|
|
384 |
|
385 |
report = st.form_submit_button('⚠️Report', use_container_width=True, type='secondary',
|
386 |
on_click=self.image_selection_control, args=(
|
387 |
-
item['tag'], item['prompt'], item['prompt_id'], item['modelVersion_id'], 'report')
|
|
|
388 |
|
389 |
if image_status == 'select' or image_status == 'reselect' or image_status is None:
|
390 |
st.info(
|
|
|
91 |
nodes.append(Node(id=items.loc[idx, 'image_id'],
|
92 |
# label=str(items.loc[idx, 'model_name']),
|
93 |
# title=f"model name: {items.loc[idx, 'model_name']}\nmodelVersion name: {items.loc[idx, 'modelVersion_name']}\nclip score: {items.loc[idx, 'clip_score']}\nmcos score: {items.loc[idx, 'mcos_score']}\npopularity: {items.loc[idx, 'model_download_count']}",
|
94 |
+
title=f"model name: {items.loc[idx, 'model_name']}",
|
95 |
size=20,
|
96 |
shape='image',
|
97 |
image=f"https://modelcofferbucket.s3-accelerate.amazonaws.com/{items.loc[idx, 'image_id']}.png",
|
|
|
283 |
if has_selection:
|
284 |
checkout = st.button('Check out selections ➡️', use_container_width=True, type='primary', on_click=self.switch_to_checkout, args=(tag, selected_prompt))
|
285 |
else:
|
286 |
+
st.button(':orange[👇 **Select images below**]', disabled=True, use_container_width=True)
|
287 |
try:
|
288 |
self.sidebar(items, prompt_id, note)
|
289 |
except:
|
|
|
384 |
|
385 |
report = st.form_submit_button('⚠️Report', use_container_width=True, type='secondary',
|
386 |
on_click=self.image_selection_control, args=(
|
387 |
+
item['tag'], item['prompt'], item['prompt_id'], item['modelVersion_id'], 'report'),
|
388 |
+
help='Report this image if it contains offensive, depressing, or sexual content.')
|
389 |
|
390 |
if image_status == 'select' or image_status == 'reselect' or image_status is None:
|
391 |
st.info(
|