kevinwang676 commited on
Commit
3360db0
1 Parent(s): 5b59d2d

Update app_share.py

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