Spaces:
Runtime error
Runtime error
Update opp.py
Browse files
opp.py
CHANGED
|
@@ -373,7 +373,7 @@ def writeScores(table, files): # => csv_output, stats_output, stats_toggle
|
|
| 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 |
-
prevent_thread_lock =
|
| 377 |
#@markdown tableQueued == True + queueConcurrency == 1 guarantees stalling on CPU
|
| 378 |
#@markdown
|
| 379 |
#@markdown tableQueued - unknown effect on speed or stability
|
|
@@ -494,7 +494,7 @@ with blks as demo:
|
|
| 494 |
log('Prelaunch')
|
| 495 |
|
| 496 |
#demo.dev_mode = DEBUG
|
| 497 |
-
demo.launch(debug=DEBUG, quiet= not DEBUG, show_error= True, prevent_thread_lock=prevent_thread_lock
|
| 498 |
if (prevent_thread_lock and not DEBUG): demo.block_thread()
|
| 499 |
|
| 500 |
#demo.close()
|
|
|
|
| 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 |
+
prevent_thread_lock = True #@param {type:"boolean"}
|
| 377 |
#@markdown tableQueued == True + queueConcurrency == 1 guarantees stalling on CPU
|
| 378 |
#@markdown
|
| 379 |
#@markdown tableQueued - unknown effect on speed or stability
|
|
|
|
| 494 |
log('Prelaunch')
|
| 495 |
|
| 496 |
#demo.dev_mode = DEBUG
|
| 497 |
+
demo.launch(debug=DEBUG, quiet= not DEBUG, show_error= True, prevent_thread_lock=prevent_thread_lock)
|
| 498 |
if (prevent_thread_lock and not DEBUG): demo.block_thread()
|
| 499 |
|
| 500 |
#demo.close()
|