Spaces:
Sleeping
Sleeping
small fixs
Browse files- README.md +1 -1
- app.py +7 -2
- requirements.txt +0 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🖼️
|
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
6 |
sdk: streamlit
|
7 |
-
sdk_version: 1.
|
8 |
python_version: 3.9.13
|
9 |
app_file: app.py
|
10 |
pinned: false
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
6 |
sdk: streamlit
|
7 |
+
sdk_version: 1.23.1
|
8 |
python_version: 3.9.13
|
9 |
app_file: app.py
|
10 |
pinned: false
|
app.py
CHANGED
@@ -105,7 +105,7 @@ class GalleryApp:
|
|
105 |
# 'Select', value=self.promptBook.loc[items.iloc[idx + j]['row_idx'].item(), 'checked'],
|
106 |
# key=f'select_{idx + j}')
|
107 |
|
108 |
-
st.write(idx+j)
|
109 |
# show selected info
|
110 |
for key in info:
|
111 |
st.write(f"**{key}**: {items.iloc[idx + j][key]}")
|
@@ -373,7 +373,12 @@ class GalleryApp:
|
|
373 |
|
374 |
if safety_check:
|
375 |
items, info, col_num = self.selection_panel_2(items)
|
376 |
-
self.gallery_standard(items, col_num, info)
|
|
|
|
|
|
|
|
|
|
|
377 |
|
378 |
# with st.form(key=f'{prompt_id}', clear_on_submit=True):
|
379 |
# buttons = st.columns([1, 1, 1])
|
|
|
105 |
# 'Select', value=self.promptBook.loc[items.iloc[idx + j]['row_idx'].item(), 'checked'],
|
106 |
# key=f'select_{idx + j}')
|
107 |
|
108 |
+
# st.write(idx+j)
|
109 |
# show selected info
|
110 |
for key in info:
|
111 |
st.write(f"**{key}**: {items.iloc[idx + j][key]}")
|
|
|
373 |
|
374 |
if safety_check:
|
375 |
items, info, col_num = self.selection_panel_2(items)
|
376 |
+
# self.gallery_standard(items, col_num, info)
|
377 |
+
|
378 |
+
gallery_place = st.empty()
|
379 |
+
|
380 |
+
with gallery_place.container():
|
381 |
+
self.gallery_standard(items, col_num, info)
|
382 |
|
383 |
# with st.form(key=f'{prompt_id}', clear_on_submit=True):
|
384 |
# buttons = st.columns([1, 1, 1])
|
requirements.txt
CHANGED
@@ -2,5 +2,4 @@ huggingface_hub
|
|
2 |
streamlit-elements==0.1.0
|
3 |
streamlit-extras
|
4 |
altair<5
|
5 |
-
streamlit-plotly-events
|
6 |
streamlit-vega-lite
|
|
|
2 |
streamlit-elements==0.1.0
|
3 |
streamlit-extras
|
4 |
altair<5
|
|
|
5 |
streamlit-vega-lite
|