Dzkaka commited on
Commit
f5b458f
1 Parent(s): 0f63408

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,6 +5,7 @@ import argparse
5
  import torch
6
  import gradio as gr
7
  import numpy as np
 
8
 
9
  import ChatTTS
10
 
@@ -21,7 +22,7 @@ def generate_seed():
21
  "__type__": "update",
22
  "value": new_seed
23
  }
24
-
25
  def generate_audio(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag):
26
  torch.manual_seed(audio_seed_input)
27
  rand_spk = torch.randn(768)
 
5
  import torch
6
  import gradio as gr
7
  import numpy as np
8
+ import spaces
9
 
10
  import ChatTTS
11
 
 
22
  "__type__": "update",
23
  "value": new_seed
24
  }
25
+ @spaces.GPU
26
  def generate_audio(text, temperature, top_P, top_K, audio_seed_input, text_seed_input, refine_text_flag):
27
  torch.manual_seed(audio_seed_input)
28
  rand_spk = torch.randn(768)