seedmanc commited on
Commit
0af732e
·
1 Parent(s): e56f00c

Update opp.py

Browse files
Files changed (1) hide show
  1. opp.py +2 -3
opp.py CHANGED
@@ -370,7 +370,7 @@ def writeScores(table, files): # => csv_output, stats_output, stats_toggle
370
  return [gr.update(value=scan()), *list(showStats)]
371
 
372
  #@title GUI { vertical-output: true, form-width: "50%", display-mode: "both" }
373
- tableQueued_False = True #@param {type:"boolean"}
374
  queueConcurrency_2 = 10 #@param {type:"integer", min:1}
375
  queueUpdateInterval_0 = 0 #@param {type:"slider", min:0, max:10, step:0.2}
376
  #@markdown tableQueued == True + queueConcurrency == 1 guarantees stalling on CPU
@@ -487,10 +487,9 @@ with blks as demo:
487
  if DEBUG:
488
  demo.load(lambda: log('load'), queue=not True, show_progress=False)
489
 
490
- demo.queue(api_open= False, status_update_rate='auto' if queueUpdateInterval_0 == 0 else queueUpdateInterval_0 , concurrency_count=max(queueConcurrency_2, 1))
491
  log('Prelaunch')
492
 
493
- demo.dev_mode = True
494
  demo.launch(debug=DEBUG, quiet=not DEBUG, show_error=True)
495
 
496
  #demo.close()
 
370
  return [gr.update(value=scan()), *list(showStats)]
371
 
372
  #@title GUI { vertical-output: true, form-width: "50%", display-mode: "both" }
373
+ tableQueued_False = False #@param {type:"boolean"}
374
  queueConcurrency_2 = 10 #@param {type:"integer", min:1}
375
  queueUpdateInterval_0 = 0 #@param {type:"slider", min:0, max:10, step:0.2}
376
  #@markdown tableQueued == True + queueConcurrency == 1 guarantees stalling on CPU
 
487
  if DEBUG:
488
  demo.load(lambda: log('load'), queue=not True, show_progress=False)
489
 
490
+ demo.queue(api_open= not DEBUG, status_update_rate='auto' if queueUpdateInterval_0 == 0 else queueUpdateInterval_0 , concurrency_count=max(queueConcurrency_2, 1))
491
  log('Prelaunch')
492
 
 
493
  demo.launch(debug=DEBUG, quiet=not DEBUG, show_error=True)
494
 
495
  #demo.close()