mrfakename commited on
Commit
525d1bc
1 Parent(s): f9283c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
2
  from musiclib import musicgen
 
 
3
  def gen(piano_only):
4
  for item in musicgen(piano_only=piano_only):
5
  yield item
 
1
  import gradio as gr
2
  from musiclib import musicgen
3
+ import spaces
4
+ @spaces.GPU(enable_queue=True)
5
  def gen(piano_only):
6
  for item in musicgen(piano_only=piano_only):
7
  yield item