Spaces:
Build error
Build error
Commit
·
dc1aa0b
1
Parent(s):
692b3ad
Upload app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
def inference(text,audio):
|
| 5 |
+
os.system('tts --text "'+text+'" --model_name tts_models/multilingual/multi-dataset/your_tts --speaker_wav '+audio+' --language_idx "pt-pt"')
|
| 6 |
+
return "tts_output.wav"
|
| 7 |
+
|
| 8 |
+
title="YourTTS"
|
| 9 |
+
description="## Gradio Demo for [Edresson/YourTTS](https://github.com/edresson/yourtts), to use it add your text and audio file"
|
| 10 |
+
examples=[['This is a test','test.wav']]
|
| 11 |
+
gr.Interface(inference,["text",gr.Audio(type="filepath")],gr.Audio(type="filepath"),title=title,description=description,examples=examples,cache_examples
|
| 12 |
+
=False).launch()
|