Spaces:
Running
on
Zero
Running
on
Zero
mrfakename
commited on
Commit
•
482f5fa
1
Parent(s):
ac7ce85
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
from musiclib import musicgen
|
@@ -10,7 +11,7 @@ import librosa
|
|
10 |
from midi2audio import FluidSynth
|
11 |
fs = FluidSynth()
|
12 |
import os
|
13 |
-
|
14 |
@spaces.GPU(enable_queue=True)
|
15 |
def gen(piano_only, piano_seed, length):
|
16 |
midi = ''
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
from musiclib import musicgen
|
|
|
11 |
from midi2audio import FluidSynth
|
12 |
fs = FluidSynth()
|
13 |
import os
|
14 |
+
|
15 |
@spaces.GPU(enable_queue=True)
|
16 |
def gen(piano_only, piano_seed, length):
|
17 |
midi = ''
|