Fabrice-TIERCELIN commited on
Commit
1da2419
·
verified ·
1 Parent(s): 107538b

Interrupt only own run

Browse files
Files changed (1) hide show
  1. demos/musicgen_app.py +0 -2
demos/musicgen_app.py CHANGED
@@ -55,7 +55,6 @@ pool.__enter__()
55
 
56
 
57
  def interrupt():
58
- global INTERRUPTING
59
  INTERRUPTING = True
60
 
61
 
@@ -179,7 +178,6 @@ def predict_batched(texts, melodies):
179
 
180
 
181
  def predict_full(model, model_path, decoder, text, melody, duration, topk, topp, temperature, cfg_coef, progress=gr.Progress()):
182
- global INTERRUPTING
183
  global USE_DIFFUSION
184
  INTERRUPTING = False
185
  progress(0, desc="Loading model...")
 
55
 
56
 
57
  def interrupt():
 
58
  INTERRUPTING = True
59
 
60
 
 
178
 
179
 
180
  def predict_full(model, model_path, decoder, text, melody, duration, topk, topp, temperature, cfg_coef, progress=gr.Progress()):
 
181
  global USE_DIFFUSION
182
  INTERRUPTING = False
183
  progress(0, desc="Loading model...")