deepanway commited on
Commit
b3bab00
1 Parent(s): 9e0eee2

update files for device agnostic inference

Browse files
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -216,11 +216,11 @@ class Mustango:
216
 
217
  # Initialize Mustango
218
  if torch.cuda.is_available():
219
- mustango = Mustango(device="cpu")
220
  else:
221
  mustango = Mustango(device="cpu")
222
 
223
- output_wave = mustango.generate("This techno song features a synth lead playing the main melody.", 5, 3, disable_progress=False)
224
 
225
  def gradio_generate(prompt, steps, guidance):
226
  output_wave = mustango.generate(prompt, steps, guidance)
 
216
 
217
  # Initialize Mustango
218
  if torch.cuda.is_available():
219
+ mustango = Mustango()
220
  else:
221
  mustango = Mustango(device="cpu")
222
 
223
+ # output_wave = mustango.generate("This techno song features a synth lead playing the main melody.", 5, 3, disable_progress=False)
224
 
225
  def gradio_generate(prompt, steps, guidance):
226
  output_wave = mustango.generate(prompt, steps, guidance)
__pycache__/models.cpython-310.pyc CHANGED
Binary files a/__pycache__/models.cpython-310.pyc and b/__pycache__/models.cpython-310.pyc differ
 
app.py CHANGED
@@ -216,11 +216,11 @@ class Mustango:
216
 
217
  # Initialize Mustango
218
  if torch.cuda.is_available():
219
- mustango = Mustango(device="cpu")
220
  else:
221
  mustango = Mustango(device="cpu")
222
 
223
- output_wave = mustango.generate("This techno song features a synth lead playing the main melody.", 5, 3, disable_progress=False)
224
 
225
  def gradio_generate(prompt, steps, guidance):
226
  output_wave = mustango.generate(prompt, steps, guidance)
 
216
 
217
  # Initialize Mustango
218
  if torch.cuda.is_available():
219
+ mustango = Mustango()
220
  else:
221
  mustango = Mustango(device="cpu")
222
 
223
+ # output_wave = mustango.generate("This techno song features a synth lead playing the main melody.", 5, 3, disable_progress=False)
224
 
225
  def gradio_generate(prompt, steps, guidance):
226
  output_wave = mustango.generate(prompt, steps, guidance)
layers/__pycache__/layers.cpython-310.pyc CHANGED
Binary files a/layers/__pycache__/layers.cpython-310.pyc and b/layers/__pycache__/layers.cpython-310.pyc differ