Spaces:
Sleeping
Sleeping
Manu
commited on
Commit
·
4f8fc46
1
Parent(s):
e600ac8
added examples
Browse files
app.py
CHANGED
@@ -97,14 +97,15 @@ def synthesise_audio(text, forward_params=None):
|
|
97 |
|
98 |
#demo = gr.Interface(fn=greet, inputs="text", outputs="text", description="----- TTS Testing -----")
|
99 |
|
100 |
-
input_text = gr.Textbox(lines=10, label="
|
101 |
-
|
102 |
|
103 |
demo = gr.Interface(fn=synthesise_audio,
|
104 |
inputs=input_text,
|
105 |
outputs="audio",
|
106 |
#outputs = gr.Audio(type="numpy"),
|
107 |
description="----- manuai Text To Speech generator test -----",
|
108 |
-
allow_flagging = False
|
|
|
109 |
|
110 |
demo.launch(debug = True)
|
|
|
97 |
|
98 |
#demo = gr.Interface(fn=greet, inputs="text", outputs="text", description="----- TTS Testing -----")
|
99 |
|
100 |
+
input_text = gr.Textbox(lines=10, label="Ten feliz cumpleaños Nuria")
|
101 |
+
examples = gr.Examples([["Feliz cumpleaños Nuria"]], ["Happy birthday Nuria"])
|
102 |
|
103 |
demo = gr.Interface(fn=synthesise_audio,
|
104 |
inputs=input_text,
|
105 |
outputs="audio",
|
106 |
#outputs = gr.Audio(type="numpy"),
|
107 |
description="----- manuai Text To Speech generator test -----",
|
108 |
+
allow_flagging = False,
|
109 |
+
examples = examples)
|
110 |
|
111 |
demo.launch(debug = True)
|