mrfakename commited on
Commit
e7774de
1 Parent(s): ca8a2ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -425,12 +425,14 @@ def synthandreturn(text):
425
  'Vote to reveal model A', # prevmodel1
426
  router.predict(
427
  text,
428
- AVAILABLE_MODELS[mdl1]
 
429
  ), # aud1
430
  'Vote to reveal model B', # prevmodel2
431
  router.predict(
432
  text,
433
- AVAILABLE_MODELS[mdl2]
 
434
  ), # aud2
435
  )
436
  with gr.Blocks() as vote:
 
425
  'Vote to reveal model A', # prevmodel1
426
  router.predict(
427
  text,
428
+ AVAILABLE_MODELS[mdl1],
429
+ api_name="/synthesize"
430
  ), # aud1
431
  'Vote to reveal model B', # prevmodel2
432
  router.predict(
433
  text,
434
+ AVAILABLE_MODELS[mdl2],
435
+ api_name="/synthesize"
436
  ), # aud2
437
  )
438
  with gr.Blocks() as vote: