gorkemgoknar
commited on
Commit
•
0d1adfa
1
Parent(s):
19d535a
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,8 @@ import os
|
|
4 |
import gradio as gr
|
5 |
from TTS.api import TTS
|
6 |
|
|
|
|
|
7 |
|
8 |
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
9 |
if agree == True:
|
|
|
4 |
import gradio as gr
|
5 |
from TTS.api import TTS
|
6 |
|
7 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
|
8 |
+
tts.to("cuda")
|
9 |
|
10 |
def predict(prompt, language, audio_file_pth, mic_file_path, use_mic, agree):
|
11 |
if agree == True:
|