Spaces:
Running
Running
mrfakename
commited on
Commit
•
6c142f7
1
Parent(s):
6aa0fa6
Update app.py
Browse files
app.py
CHANGED
@@ -379,11 +379,11 @@ def reload(chosenmodel1=None, chosenmodel2=None, userid=None, chose_a=False, cho
|
|
379 |
gr.update(interactive=False, visible=False)
|
380 |
]
|
381 |
if chose_a == True:
|
382 |
-
out.append(gr.update(value=f'
|
383 |
-
out.append(gr.update(value=f'
|
384 |
else:
|
385 |
-
out.append(gr.update(value=f'
|
386 |
-
out.append(gr.update(value=f'
|
387 |
return out
|
388 |
|
389 |
with gr.Blocks() as leaderboard:
|
|
|
379 |
gr.update(interactive=False, visible=False)
|
380 |
]
|
381 |
if chose_a == True:
|
382 |
+
out.append(gr.update(value=f'Your vote: {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'Your vote: {chosenmodel1}', interactive=False, visible=True))
|
387 |
return out
|
388 |
|
389 |
with gr.Blocks() as leaderboard:
|