mrfakename commited on
Commit
17424a6
1 Parent(s): 52f15e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -379,14 +379,10 @@ def reload(chosenmodel1=None, chosenmodel2=None, userid=None, chose_a=False, cho
379
  gr.update(interactive=False, visible=False),
380
  gr.update(value=chosenmodel2, interactive=False, visible=True),
381
  ]
382
- if chose_a:
383
- out.append(gr.update(value=f'✨ {chosenmodel1}', interactive=False, visible=True))
384
- else:
385
- out.append(gr.update(value=f'🥺 {chosenmodel1}', interactive=False, visible=True))
386
- if chose_b:
387
- out.append(gr.update(value=f'✨ {chosenmodel2}', interactive=False, visible=True))
388
- else:
389
- out.append(gr.update(value=f'🥺 {chosenmodel2}', interactive=False, visible=True))
390
  return out
391
 
392
  with gr.Blocks() as leaderboard:
 
379
  gr.update(interactive=False, visible=False),
380
  gr.update(value=chosenmodel2, interactive=False, visible=True),
381
  ]
382
+ a_emoji = '✨' if chose_a else '🥹'
383
+ b_emoji = '✨' if chose_b else '🥹'
384
+ out.append(gr.update(value=f'{a_emoji} {chosenmodel1}', interactive=False, visible=True))
385
+ out.append(gr.update(value=f'{b_emoji} {chosenmodel2}', interactive=False, visible=True))
 
 
 
 
386
  return out
387
 
388
  with gr.Blocks() as leaderboard: