Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,28 +34,28 @@ with gr.Blocks() as block:
|
|
34 |
gr.Markdown("# <center> ElevenLabs TTS </center>")
|
35 |
gr.Markdown(description)
|
36 |
|
37 |
-
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
)
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
)
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
)
|
60 |
|
61 |
run_button = gr.Button(
|
|
|
34 |
gr.Markdown("# <center> ElevenLabs TTS </center>")
|
35 |
gr.Markdown(description)
|
36 |
|
37 |
+
with gr.Row(variant='panel'):
|
38 |
|
39 |
+
input_api_key = gr.Textbox(
|
40 |
+
type='password',
|
41 |
+
label='Elevenlabs API Key',
|
42 |
+
placeholder='Enter your API key',
|
43 |
+
elem_id="input_api_key"
|
44 |
)
|
45 |
|
46 |
+
input_text = gr.Textbox(
|
47 |
+
label="Input Text (4000 characters max)",
|
48 |
+
lines=2,
|
49 |
+
value="Hello! 你好! Hola! नमस्ते! Bonjour! こんにちは! مرحبا! 안녕하세요! Ciao! Cześć! Привіт! Γειά σας! Здравей! வணக்கம்!",
|
50 |
+
elem_id="input_text"
|
51 |
)
|
52 |
|
53 |
+
all_voices = voices()
|
54 |
+
input_voice = gr.Dropdown(
|
55 |
+
[ voice.name for voice in all_voices ],
|
56 |
+
value="Rachel",
|
57 |
+
label="Voice",
|
58 |
+
elem_id="input_voice"
|
59 |
)
|
60 |
|
61 |
run_button = gr.Button(
|