kevinwang676 commited on
Commit
dc26003
·
verified ·
1 Parent(s): f342ca3

Update inference/svs/gradio/infer.py

Browse files
Files changed (1) hide show
  1. inference/svs/gradio/infer.py +0 -3
inference/svs/gradio/infer.py CHANGED
@@ -10,8 +10,6 @@ from utils.hparams import set_hparams
10
  from utils.hparams import hparams as hp
11
  import numpy as np
12
 
13
- import spaces
14
-
15
  class GradioInfer:
16
  def __init__(self, exp_name, inference_cls, title, description, article, example_inputs):
17
  self.exp_name = exp_name
@@ -23,7 +21,6 @@ class GradioInfer:
23
  cls_name = inference_cls.split(".")[-1]
24
  self.inference_cls = getattr(importlib.import_module(pkg), cls_name)
25
 
26
- @spaces.GPU(duration=180)
27
  def greet(self, text, notes, notes_duration):
28
  PUNCS = '。?;:'
29
  sents = re.split(rf'([{PUNCS}])', text.replace('\n', ','))
 
10
  from utils.hparams import hparams as hp
11
  import numpy as np
12
 
 
 
13
  class GradioInfer:
14
  def __init__(self, exp_name, inference_cls, title, description, article, example_inputs):
15
  self.exp_name = exp_name
 
21
  cls_name = inference_cls.split(".")[-1]
22
  self.inference_cls = getattr(importlib.import_module(pkg), cls_name)
23
 
 
24
  def greet(self, text, notes, notes_duration):
25
  PUNCS = '。?;:'
26
  sents = re.split(rf'([{PUNCS}])', text.replace('\n', ','))