littlebird13 commited on
Commit
f654d12
1 Parent(s): 06a0460

Update css/custom.py

Browse files
Files changed (1) hide show
  1. css/custom.py +2 -0
css/custom.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import random
2
 
3
  import gradio as gr
@@ -10,6 +11,7 @@ def custom():
10
  def random_seed():
11
  return random.randint(1, 100000000)
12
 
 
13
  def generate_audio(_recorded_audio, _prompt_input_textbox, _language_radio,
14
  _synthetic_input_textbox, _seed):
15
  print(_recorded_audio, _prompt_input_textbox, _language_radio, _synthetic_input_textbox, _seed)
 
1
+ import spaces
2
  import random
3
 
4
  import gradio as gr
 
11
  def random_seed():
12
  return random.randint(1, 100000000)
13
 
14
+ @spaces.GPU
15
  def generate_audio(_recorded_audio, _prompt_input_textbox, _language_radio,
16
  _synthetic_input_textbox, _seed):
17
  print(_recorded_audio, _prompt_input_textbox, _language_radio, _synthetic_input_textbox, _seed)