manoskary commited on
Commit
0f15877
·
verified ·
1 Parent(s): 19e0f81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -8,6 +8,7 @@ The ABC notation can then be processed by WeaveMuse locally for XML/PDF conversi
8
  """
9
 
10
  import gradio as gr
 
11
  import torch
12
  import logging
13
  import traceback
@@ -31,6 +32,7 @@ except Exception as e:
31
  notagen_tool = None
32
 
33
 
 
34
  def generate_abc(period: str, composer: str, instrumentation: str) -> str:
35
  """
36
  Generate ABC notation using NotaGen.
 
8
  """
9
 
10
  import gradio as gr
11
+ import spaces
12
  import torch
13
  import logging
14
  import traceback
 
32
  notagen_tool = None
33
 
34
 
35
+ @spaces.GPU()
36
  def generate_abc(period: str, composer: str, instrumentation: str) -> str:
37
  """
38
  Generate ABC notation using NotaGen.