mrfakename commited on
Commit
6aa0fa6
1 Parent(s): 009ac4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -376,15 +376,14 @@ def reload(chosenmodel1=None, chosenmodel2=None, userid=None, chose_a=False, cho
376
  # return (gr.update(variant='secondary', value=chosenmodel1, interactive=False), gr.update(variant='secondary', value=chosenmodel2, interactive=False))
377
  out = [
378
  gr.update(interactive=False, visible=False),
379
- gr.update(interactive=False, visible=False),
380
- gr.update(value=chosenmodel2, interactive=False, visible=True),
381
  ]
382
  if chose_a == True:
383
- out.append(gr.update(value=f'You chose {chosenmodel1}', interactive=False, visible=True))
384
- out.append(gr.update(value=f'{chosenmodel2}', interactive=False, visible=True))
385
  else:
386
- out.append(gr.update(value=f'{chosenmodel1}', interactive=False, visible=True))
387
- out.append(gr.update(value=f'You chose {chosenmodel1}', interactive=False, visible=True))
388
  return out
389
 
390
  with gr.Blocks() as leaderboard:
 
376
  # return (gr.update(variant='secondary', value=chosenmodel1, interactive=False), gr.update(variant='secondary', value=chosenmodel2, interactive=False))
377
  out = [
378
  gr.update(interactive=False, visible=False),
379
+ gr.update(interactive=False, visible=False)
 
380
  ]
381
  if chose_a == True:
382
+ out.append(gr.update(value=f' {chosenmodel1}', interactive=False, visible=True))
383
+ out.append(gr.update(value=f'🥹 {chosenmodel2}', interactive=False, visible=True))
384
  else:
385
+ out.append(gr.update(value=f'🥹 {chosenmodel1}', interactive=False, visible=True))
386
+ out.append(gr.update(value=f' {chosenmodel1}', interactive=False, visible=True))
387
  return out
388
 
389
  with gr.Blocks() as leaderboard: