Spaces:
Running
Running
mrfakename
commited on
Commit
•
7b02848
1
Parent(s):
bc37e1b
Update app.py
Browse files
app.py
CHANGED
@@ -357,7 +357,7 @@ def reload(chosenmodel1=None, chosenmodel2=None, userid=None):
|
|
357 |
# if chosenmodel1: out.append(f'This model was {chosenmodel1}')
|
358 |
# if chosenmodel2: out.append(f'This model was {chosenmodel2}')
|
359 |
# return out
|
360 |
-
return (f'This model was {chosenmodel1}', f'This model was {chosenmodel2}', gr.update(visible=
|
361 |
|
362 |
with gr.Blocks() as leaderboard:
|
363 |
gr.Markdown(LDESC)
|
@@ -437,8 +437,8 @@ def synthandreturn(text):
|
|
437 |
AVAILABLE_MODELS[mdl2],
|
438 |
api_name="/synthesize"
|
439 |
), # aud2
|
440 |
-
gr.update(visible=
|
441 |
-
gr.update(visible=
|
442 |
)
|
443 |
with gr.Blocks() as vote:
|
444 |
useridstate = gr.State()
|
|
|
357 |
# if chosenmodel1: out.append(f'This model was {chosenmodel1}')
|
358 |
# if chosenmodel2: out.append(f'This model was {chosenmodel2}')
|
359 |
# return out
|
360 |
+
return (f'This model was {chosenmodel1}', f'This model was {chosenmodel2}', gr.update(visible=False), gr.update(visible=False))
|
361 |
|
362 |
with gr.Blocks() as leaderboard:
|
363 |
gr.Markdown(LDESC)
|
|
|
437 |
AVAILABLE_MODELS[mdl2],
|
438 |
api_name="/synthesize"
|
439 |
), # aud2
|
440 |
+
gr.update(visible=True),
|
441 |
+
gr.update(visible=True)
|
442 |
)
|
443 |
with gr.Blocks() as vote:
|
444 |
useridstate = gr.State()
|