Spaces:
Running
Running
small detail update
Browse files- pages/Gallery.py +1 -19
pages/Gallery.py
CHANGED
@@ -227,24 +227,6 @@ class GalleryApp:
|
|
227 |
|
228 |
def sidebar(self, items, prompt_id, note):
|
229 |
with st.sidebar:
|
230 |
-
# prompt_tags = self.promptBook['tag'].unique()
|
231 |
-
# # sort tags by alphabetical order
|
232 |
-
# prompt_tags = np.sort(prompt_tags)[::1]
|
233 |
-
#
|
234 |
-
# tag = st.selectbox('Select a tag', prompt_tags, index=5)
|
235 |
-
#
|
236 |
-
# items = self.promptBook[self.promptBook['tag'] == tag].reset_index(drop=True)
|
237 |
-
#
|
238 |
-
# prompts = np.sort(items['prompt'].unique())[::1]
|
239 |
-
#
|
240 |
-
# selected_prompt = st.selectbox('Select prompt', prompts, index=3)
|
241 |
-
|
242 |
-
# mode = st.radio('Select a mode', ['Gallery', 'Graph'], horizontal=True, index=1)
|
243 |
-
|
244 |
-
# items = items[items['prompt'] == selected_prompt].reset_index(drop=True)
|
245 |
-
|
246 |
-
# st.title('Model Visualization and Retrieval')
|
247 |
-
|
248 |
# show source
|
249 |
if isinstance(note, str):
|
250 |
if note.isdigit():
|
@@ -548,7 +530,7 @@ class GalleryApp:
|
|
548 |
|
549 |
with checkout_buttons[-1]:
|
550 |
proceed = st.button('Proceed ➡️', key=f'checkout_proceed_{prompt_id}', use_container_width=True,
|
551 |
-
type='primary')
|
552 |
if proceed:
|
553 |
st.session_state.gallery_focus['tag'] = tag
|
554 |
st.session_state.gallery_focus['prompt'] = prompt
|
|
|
227 |
|
228 |
def sidebar(self, items, prompt_id, note):
|
229 |
with st.sidebar:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
# show source
|
231 |
if isinstance(note, str):
|
232 |
if note.isdigit():
|
|
|
530 |
|
531 |
with checkout_buttons[-1]:
|
532 |
proceed = st.button('Proceed ➡️', key=f'checkout_proceed_{prompt_id}', use_container_width=True,
|
533 |
+
type='primary', disabled=st.session_state.edit_state)
|
534 |
if proceed:
|
535 |
st.session_state.gallery_focus['tag'] = tag
|
536 |
st.session_state.gallery_focus['prompt'] = prompt
|