Spaces:
Runtime error
Runtime error
Update spaces.py
Browse files
spaces.py
CHANGED
|
@@ -298,14 +298,14 @@ iface = gr.Interface(
|
|
| 298 |
info="You can be specific about the number of turns, tone, and content of the conversation"
|
| 299 |
),
|
| 300 |
gr.Dropdown(
|
| 301 |
-
choices=[choice[
|
| 302 |
-
value="cgSgspJ2msm6clMCkdW9",
|
| 303 |
label="Female Voice",
|
| 304 |
info="Select the voice for the female speaker"
|
| 305 |
),
|
| 306 |
gr.Dropdown(
|
| 307 |
-
choices=[choice[
|
| 308 |
-
value="3Niy6MUaDzcs7Liw7dFs",
|
| 309 |
label="Male Voice",
|
| 310 |
info="Select the voice for the male speaker"
|
| 311 |
),
|
|
|
|
| 298 |
info="You can be specific about the number of turns, tone, and content of the conversation"
|
| 299 |
),
|
| 300 |
gr.Dropdown(
|
| 301 |
+
choices=[choice[1] for choice in voice_choices],
|
| 302 |
+
value=next(voice["name"] for voice in available_voices if voice["voice_id"] == "cgSgspJ2msm6clMCkdW9"),
|
| 303 |
label="Female Voice",
|
| 304 |
info="Select the voice for the female speaker"
|
| 305 |
),
|
| 306 |
gr.Dropdown(
|
| 307 |
+
choices=[choice[1] for choice in voice_choices],
|
| 308 |
+
value=next(voice["name"] for voice in available_voices if voice["voice_id"] == "3Niy6MUaDzcs7Liw7dFs"),
|
| 309 |
label="Male Voice",
|
| 310 |
info="Select the voice for the male speaker"
|
| 311 |
),
|