Spaces:
Running
on
Zero
Running
on
Zero
mrfakename
commited on
Commit
•
1a376e8
1
Parent(s):
b5bf053
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def gen(piano_only, piano_seed, length):
|
|
27 |
with tempfile.NamedTemporaryFile(suffix='.midi', delete=False) as tmp, tempfile.NamedTemporaryFile(suffix='.wav', delete=False) as aud:
|
28 |
mid.save(tmp.name)
|
29 |
fs.midi_to_audio(tmp.name, aud.name)
|
30 |
-
yield midi, tmp.name, aud.name, gr.update(visible=True)
|
31 |
@spaces.GPU(enable_queue=True)
|
32 |
def continueit(piano_only, piano_seed, length, txtout):
|
33 |
midi = ''
|
|
|
27 |
with tempfile.NamedTemporaryFile(suffix='.midi', delete=False) as tmp, tempfile.NamedTemporaryFile(suffix='.wav', delete=False) as aud:
|
28 |
mid.save(tmp.name)
|
29 |
fs.midi_to_audio(tmp.name, aud.name)
|
30 |
+
yield midi, tmp.name, aud.name, gr.update(visible=True, value="Continue ➡️")
|
31 |
@spaces.GPU(enable_queue=True)
|
32 |
def continueit(piano_only, piano_seed, length, txtout):
|
33 |
midi = ''
|