Pendrokar commited on
Commit
b2a8b0a
·
2 Parent(s): d5bd795 cc85f78

Merge branch 'spaces'

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -198,7 +198,7 @@ if not os.path.isfile(DB_PATH):
198
 
199
  # Create DB table (if doesn't exist)
200
  create_db_if_missing()
201
-
202
  hf_token = os.getenv('HF_TOKEN')
203
  # Sync local DB with remote repo every 5 minute (only if a change is detected)
204
  scheduler = CommitScheduler(
@@ -881,7 +881,7 @@ with gr.Blocks() as vote:
881
  nxtroundbtn = gr.Button('Next round', visible=False)
882
  # outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
883
  outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn, aplayed, bplayed]
884
- btn.click(disable, outputs=[btn, abetter, bbetter]).then(synthandreturn, inputs=[text], outputs=outputs).then(enable, outputs=[btn, abetter, bbetter])
885
  nxtroundbtn.click(clear_stuff, outputs=outputs)
886
 
887
  # Allow interaction with the vote buttons only when both audio samples have finished playing
 
198
 
199
  # Create DB table (if doesn't exist)
200
  create_db_if_missing()
201
+
202
  hf_token = os.getenv('HF_TOKEN')
203
  # Sync local DB with remote repo every 5 minute (only if a change is detected)
204
  scheduler = CommitScheduler(
 
881
  nxtroundbtn = gr.Button('Next round', visible=False)
882
  # outputs = [text, btn, r2, model1, model2, prevmodel1, aud1, prevmodel2, aud2, abetter, bbetter]
883
  outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn, aplayed, bplayed]
884
+ btn.click(disable, outputs=[btn, abetter, bbetter]).then(synthandreturn, inputs=[text], outputs=outputs)
885
  nxtroundbtn.click(clear_stuff, outputs=outputs)
886
 
887
  # Allow interaction with the vote buttons only when both audio samples have finished playing