Korakoe commited on
Commit
b8cec45
1 Parent(s): 2d4cfe6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -65,7 +65,10 @@ for v in voicelist:
65
  # # return (24000, styletts2importable.inference(text, voices[v], alpha=0.3, beta=0.7, diffusion_steps=7, embedding_scale=1))
66
  # return (24000, styletts2importable.inference(text, voices[v], alpha=0.3, beta=0.7, diffusion_steps=multispeakersteps, embedding_scale=1))
67
  if not torch.cuda.is_available(): INTROTXT += "\n\n### on CPU, it'll run rather slower, but not too much."
68
- if not torch.cuda.is_available(): device = "cpu" else: "cuda"
 
 
 
69
  @spaces.GPU
70
  def synthesize(text, voice, lngsteps,embscale,alpha, beta, password, progress=gr.Progress()):
71
  if text.strip() == "":
 
65
  # # return (24000, styletts2importable.inference(text, voices[v], alpha=0.3, beta=0.7, diffusion_steps=7, embedding_scale=1))
66
  # return (24000, styletts2importable.inference(text, voices[v], alpha=0.3, beta=0.7, diffusion_steps=multispeakersteps, embedding_scale=1))
67
  if not torch.cuda.is_available(): INTROTXT += "\n\n### on CPU, it'll run rather slower, but not too much."
68
+ if not torch.cuda.is_available():
69
+ device = "cpu"
70
+ else:
71
+ device = "cuda"
72
  @spaces.GPU
73
  def synthesize(text, voice, lngsteps,embscale,alpha, beta, password, progress=gr.Progress()):
74
  if text.strip() == "":