littlebird13 commited on
Commit
7db4d32
1 Parent(s): f654d12

Update css/preset.py

Browse files
Files changed (1) hide show
  1. css/preset.py +2 -0
css/preset.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import random
2
 
3
  import gradio as gr
@@ -12,6 +13,7 @@ def preset():
12
  def random_seed():
13
  return random.randint(1, 100000000)
14
 
 
15
  def generate_audio(_sound_radio, _synthetic_input_textbox, _seed):
16
  print(_sound_radio, _synthetic_input_textbox, _seed)
17
  if _synthetic_input_textbox == '':
 
1
+ import spaces
2
  import random
3
 
4
  import gradio as gr
 
13
  def random_seed():
14
  return random.randint(1, 100000000)
15
 
16
+ @spaces.GPU
17
  def generate_audio(_sound_radio, _synthetic_input_textbox, _seed):
18
  print(_sound_radio, _synthetic_input_textbox, _seed)
19
  if _synthetic_input_textbox == '':