litagin commited on
Commit
51d6dd0
β€’
1 Parent(s): 7dbf083

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,7 @@ import datetime
2
  from pathlib import Path
3
  import gradio as gr
4
  import random
 
5
  from style_bert_vits2.constants import (
6
  DEFAULT_LENGTH,
7
  DEFAULT_LINE_SPLIT,
@@ -58,6 +59,7 @@ def gr_util(item):
58
 
59
 
60
  def create_inference_app(model_holder: TTSModelHolder) -> gr.Blocks:
 
61
  def tts_fn(
62
  model_name,
63
  model_path,
 
2
  from pathlib import Path
3
  import gradio as gr
4
  import random
5
+ import spaces
6
  from style_bert_vits2.constants import (
7
  DEFAULT_LENGTH,
8
  DEFAULT_LINE_SPLIT,
 
59
 
60
 
61
  def create_inference_app(model_holder: TTSModelHolder) -> gr.Blocks:
62
+ @spaces.GPU
63
  def tts_fn(
64
  model_name,
65
  model_path,