Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- app.py +3 -1
- requirements.txt +24 -0
app.py
CHANGED
@@ -57,6 +57,7 @@ def generate_audio(text, temperature, top_P, top_K, audio_seed_input, text_seed_
|
|
57 |
|
58 |
def main():
|
59 |
|
|
|
60 |
with gr.Blocks() as demo:
|
61 |
gr.Markdown("# ChatTTS Webui")
|
62 |
gr.Markdown("ChatTTS Model: [2noise/ChatTTS](https://github.com/2noise/ChatTTS)")
|
@@ -98,7 +99,8 @@ def main():
|
|
98 |
parser.add_argument('--server_port', type=int, default=8080, help='Server port')
|
99 |
args = parser.parse_args()
|
100 |
|
101 |
-
demo.launch(server_name=args.server_name, server_port=args.server_port, inbrowser=True)
|
|
|
102 |
|
103 |
|
104 |
if __name__ == '__main__':
|
|
|
57 |
|
58 |
def main():
|
59 |
|
60 |
+
|
61 |
with gr.Blocks() as demo:
|
62 |
gr.Markdown("# ChatTTS Webui")
|
63 |
gr.Markdown("ChatTTS Model: [2noise/ChatTTS](https://github.com/2noise/ChatTTS)")
|
|
|
99 |
parser.add_argument('--server_port', type=int, default=8080, help='Server port')
|
100 |
args = parser.parse_args()
|
101 |
|
102 |
+
# demo.launch(server_name=args.server_name, server_port=args.server_port, inbrowser=True)
|
103 |
+
demo.launch()
|
104 |
|
105 |
|
106 |
if __name__ == '__main__':
|
requirements.txt
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# PyTorch and related libraries
|
2 |
+
torch
|
3 |
+
torchvision
|
4 |
+
torchaudio
|
5 |
+
|
6 |
+
# Hugging Face transformers library
|
7 |
+
transformers
|
8 |
+
|
9 |
+
# Configuration management with OmegaConf
|
10 |
+
omegaconf
|
11 |
+
|
12 |
+
# Interactive widgets for Jupyter Notebooks
|
13 |
+
ipywidgets
|
14 |
+
|
15 |
+
# Gradio for creating web UIs
|
16 |
+
gradio
|
17 |
+
|
18 |
+
# Vector quantization for PyTorch
|
19 |
+
vector_quantize_pytorch
|
20 |
+
|
21 |
+
# Hugging Face Hub client
|
22 |
+
huggingface_hub
|
23 |
+
|
24 |
+
vocos
|