Added audio components
Browse files
app.py
CHANGED
@@ -22,6 +22,16 @@ out_audio = gradio.Audio(
|
|
22 |
type="numpy",
|
23 |
elem_id="out_audio"
|
24 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
inputs = [input_text, input_voice, model_name]
|
27 |
outputs = [out_audio]
|
|
|
22 |
type="numpy",
|
23 |
elem_id="out_audio"
|
24 |
)
|
25 |
+
|
26 |
+
input_text = gr.Textbox(
|
27 |
+
label="Input Text (250 characters max)",
|
28 |
+
lines=2,
|
29 |
+
value="Hahaha OHH MY GOD! This is SOOO funny, I-I am Eleven a text-to-speech system!",
|
30 |
+
elem_id="input_text"
|
31 |
+
)
|
32 |
+
|
33 |
+
input_voice = "Arnold"
|
34 |
+
input_model = "eleven_monolingual_v1"
|
35 |
|
36 |
inputs = [input_text, input_voice, model_name]
|
37 |
outputs = [out_audio]
|