Spaces:
Runtime error
Runtime error
2nd commit
Browse files
app.py
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
import subprocess
|
| 3 |
+
import gradio as gr
|
| 4 |
+
import os
|
| 5 |
+
import openai
|
| 6 |
+
import base64
|
| 7 |
+
import numpy as np
|
| 8 |
+
|
| 9 |
+
API_KEY = os.getenv('OPEN_AI_API_KEY')
|
| 10 |
+
from TTS.api import TTS
|
| 11 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to('cuda')
|
| 12 |
+
|
| 13 |
+
DESCRIPTION = '''
|
| 14 |
+
<div>
|
| 15 |
+
<h1 style="text-align: center;">Atoo 🦜</h1>
|
| 16 |
+
<p style="text-align: center;">This carries a Multi-Spearker and a Multi-lingual Model by <a href="https://github.com/coqui-ai/TTS"><b>coqui-ai</b></a></p>
|
| 17 |
+
</div>
|
| 18 |
+
'''
|
| 19 |
+
|