Spaces:
Sleeping
Sleeping
test sidebar
Browse files- pages/Gallery.py +10 -10
pages/Gallery.py
CHANGED
@@ -184,15 +184,15 @@ class GalleryApp:
|
|
184 |
else:
|
185 |
st.caption("`Source: Parti-prompts`")
|
186 |
|
187 |
-
# show image metadata
|
188 |
-
image_metadatas = ['prompt_id', 'prompt', 'negativePrompt', 'sampler', 'cfgScale', 'size', 'seed']
|
189 |
-
for key in image_metadatas:
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
# for note as civitai image id, add civitai reference
|
198 |
if isinstance(note, str) and note.isdigit():
|
@@ -423,7 +423,7 @@ def load_hf_dataset():
|
|
423 |
|
424 |
|
425 |
if __name__ == "__main__":
|
426 |
-
st.set_page_config(page_title="Model Coffer Gallery", page_icon="🖼️", layout="wide")
|
427 |
|
428 |
# remove ranking in the session state if it is created in Ranking.py
|
429 |
st.session_state.pop('ranking', None)
|
|
|
184 |
else:
|
185 |
st.caption("`Source: Parti-prompts`")
|
186 |
|
187 |
+
# # show image metadata
|
188 |
+
# image_metadatas = ['prompt_id', 'prompt', 'negativePrompt', 'sampler', 'cfgScale', 'size', 'seed']
|
189 |
+
# for key in image_metadatas:
|
190 |
+
# label = ' '.join(key.split('_')).capitalize()
|
191 |
+
# st.write(f"**{label}**")
|
192 |
+
# if items[key][0] == ' ':
|
193 |
+
# st.write('`None`')
|
194 |
+
# else:
|
195 |
+
# st.caption(f"{items[key][0]}")
|
196 |
|
197 |
# for note as civitai image id, add civitai reference
|
198 |
if isinstance(note, str) and note.isdigit():
|
|
|
423 |
|
424 |
|
425 |
if __name__ == "__main__":
|
426 |
+
# st.set_page_config(page_title="Model Coffer Gallery", page_icon="🖼️", layout="wide")
|
427 |
|
428 |
# remove ranking in the session state if it is created in Ranking.py
|
429 |
st.session_state.pop('ranking', None)
|