mrfakename commited on
Commit
7b02848
1 Parent(s): bc37e1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=True), gr.update(visible=True))
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=False),
441
- gr.update(visible=False)
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()