Ricercar commited on
Commit
70659e0
·
1 Parent(s): fe662e3

ui adjustments

Browse files
Files changed (2) hide show
  1. pages/Gallery.py +1 -1
  2. pages/Ranking.py +4 -4
pages/Gallery.py CHANGED
@@ -239,7 +239,7 @@ class GalleryApp:
239
 
240
  # items = items[items['prompt'] == selected_prompt].reset_index(drop=True)
241
 
242
- st.title('Model Visualization and Retrieval')
243
 
244
  # show source
245
  if isinstance(note, str):
 
239
 
240
  # items = items[items['prompt'] == selected_prompt].reset_index(drop=True)
241
 
242
+ # st.title('Model Visualization and Retrieval')
243
 
244
  # show source
245
  if isinstance(note, str):
pages/Ranking.py CHANGED
@@ -26,8 +26,8 @@ class RankingApp:
26
 
27
  def sidebar(self, selected_prompt, items):
28
  with st.sidebar:
29
- st.title('Personal Image Ranking')
30
- st.write('Here you can test out your selected images with any prompt you like. ')
31
  # prompt_tags = self.promptBook['tag'].unique()
32
  # prompt_tags = np.sort(prompt_tags).tolist()
33
  #
@@ -264,7 +264,7 @@ class RankingApp:
264
  self.battle_images(items, prompt_id)
265
 
266
  def app(self):
267
- # st.title('Personal Image Ranking')
268
  # st.write('Here you can test out your selected images with any prompt you like. ')
269
  # st.write(self.promptBook)
270
 
@@ -282,7 +282,7 @@ class RankingApp:
282
  'tag'] in prompt_tags else 0
283
  print(tag_idx)
284
 
285
- tag = st.radio('Select a tag', prompt_tags, index=tag_idx, horizontal=True)
286
  items = self.promptBook[self.promptBook['tag'] == tag].reset_index(drop=True)
287
  prompts = np.sort(items['prompt'].unique())[::-1].tolist()
288
 
 
26
 
27
  def sidebar(self, selected_prompt, items):
28
  with st.sidebar:
29
+ # st.title('Personal Image Ranking')
30
+ # st.write('Here you can test out your selected images with any prompt you like. ')
31
  # prompt_tags = self.promptBook['tag'].unique()
32
  # prompt_tags = np.sort(prompt_tags).tolist()
33
  #
 
264
  self.battle_images(items, prompt_id)
265
 
266
  def app(self):
267
+ st.write('### Personal Image Ranking')
268
  # st.write('Here you can test out your selected images with any prompt you like. ')
269
  # st.write(self.promptBook)
270
 
 
282
  'tag'] in prompt_tags else 0
283
  print(tag_idx)
284
 
285
+ tag = st.radio('Select a tag', prompt_tags, index=tag_idx, horizontal=True, label_visibility='collapsed')
286
  items = self.promptBook[self.promptBook['tag'] == tag].reset_index(drop=True)
287
  prompts = np.sort(items['prompt'].unique())[::-1].tolist()
288