Spaces:
Running
Running
deekshachilukuri
commited on
init!
Browse files
app.py
CHANGED
@@ -1,6 +1,12 @@
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from TTS.api import TTS
|
|
|
|
|
4 |
|
5 |
# Assume that the TTS and its required setup are correctly configured similar to your script above
|
6 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
1 |
+
!pip install ipykernel
|
2 |
+
!pip install TTS
|
3 |
+
!pip install torch
|
4 |
+
|
5 |
import gradio as gr
|
6 |
import torch
|
7 |
from TTS.api import TTS
|
8 |
+
import os
|
9 |
+
|
10 |
|
11 |
# Assume that the TTS and its required setup are correctly configured similar to your script above
|
12 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|