Spaces:
Running
Running
mrfakename
commited on
Commit
•
009ac4f
1
Parent(s):
17424a6
Update app.py
Browse files
app.py
CHANGED
@@ -379,10 +379,12 @@ 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 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
|
|
|
|
386 |
return out
|
387 |
|
388 |
with gr.Blocks() as leaderboard:
|
|
|
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:
|