deekshachilukuri commited on
Commit
248e28b
1 Parent(s): 942a4df
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,9 +1,10 @@
1
-
2
  import gradio as gr
3
  from TTS.api import TTS
4
  import os
5
 
6
 
 
7
  # Assume that the TTS and its required setup are correctly configured similar to your script above
8
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
9
  tts = TTS(model_name="tts_models/multilingual/multi-dataset/xtts_v2", progress_bar=False).to(device)
 
1
+ import torch
2
  import gradio as gr
3
  from TTS.api import TTS
4
  import os
5
 
6
 
7
+
8
  # Assume that the TTS and its required setup are correctly configured similar to your script above
9
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
10
  tts = TTS(model_name="tts_models/multilingual/multi-dataset/xtts_v2", progress_bar=False).to(device)