wsntxxn commited on
Commit
420f9f6
·
verified ·
1 Parent(s): 66e8626

Add @spaces.GPU

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import os
3
  import json
@@ -58,6 +59,7 @@ def convert_tdc_to_tcc(b_str):
58
  names.append(name)
59
  return ' and '.join(names)
60
 
 
61
  def infer(input_text, input_onset, input_length, time_control):
62
  # para
63
  input_onset = a_to_b(input_onset)
 
1
+ import spaces
2
  import gradio as gr
3
  import os
4
  import json
 
59
  names.append(name)
60
  return ' and '.join(names)
61
 
62
+ @spaces.GPU(duration=240)
63
  def infer(input_text, input_onset, input_length, time_control):
64
  # para
65
  input_onset = a_to_b(input_onset)