Spaces:
Running
Running
Fix input voice validation
Browse files- app.py +0 -1
- mcp_host/tts/fastrtc_tts.py +1 -1
- mcp_host/tts/hf_zero_gpu_tts.py +1 -1
- mcp_host/ui.py +1 -1
app.py
CHANGED
|
@@ -108,7 +108,6 @@ with gr.Blocks(theme=gr.themes.Ocean()) as vibe_shopping_app:
|
|
| 108 |
rtc_configuration=get_cloudflare_turn_credentials_async,
|
| 109 |
server_rtc_configuration=get_cloudflare_turn_credentials(ttl=360_000),
|
| 110 |
scale=0,
|
| 111 |
-
height=190,
|
| 112 |
)
|
| 113 |
with gr.Accordion(open=False, label="Input Image"):
|
| 114 |
gr.Markdown(
|
|
|
|
| 108 |
rtc_configuration=get_cloudflare_turn_credentials_async,
|
| 109 |
server_rtc_configuration=get_cloudflare_turn_credentials(ttl=360_000),
|
| 110 |
scale=0,
|
|
|
|
| 111 |
)
|
| 112 |
with gr.Accordion(open=False, label="Input Image"):
|
| 113 |
gr.Markdown(
|
mcp_host/tts/fastrtc_tts.py
CHANGED
|
@@ -26,7 +26,7 @@ def stream_text_to_speech(
|
|
| 26 |
np.ndarray: The audio as a NumPy array.
|
| 27 |
"""
|
| 28 |
voice = voice or "af_heart"
|
| 29 |
-
if voice not in VOICES:
|
| 30 |
raise ValueError(f"Voice '{voice}' is not available.")
|
| 31 |
|
| 32 |
kokoro_lang = voice[0]
|
|
|
|
| 26 |
np.ndarray: The audio as a NumPy array.
|
| 27 |
"""
|
| 28 |
voice = voice or "af_heart"
|
| 29 |
+
if voice not in VOICES.values():
|
| 30 |
raise ValueError(f"Voice '{voice}' is not available.")
|
| 31 |
|
| 32 |
kokoro_lang = voice[0]
|
mcp_host/tts/hf_zero_gpu_tts.py
CHANGED
|
@@ -52,7 +52,7 @@ def stream_text_to_speech(
|
|
| 52 |
np.ndarray: The audio as a NumPy array.
|
| 53 |
"""
|
| 54 |
voice = voice or "af_heart"
|
| 55 |
-
if voice not in VOICES:
|
| 56 |
raise ValueError(f"Voice '{voice}' is not available.")
|
| 57 |
|
| 58 |
kokoro_lang = voice[0]
|
|
|
|
| 52 |
np.ndarray: The audio as a NumPy array.
|
| 53 |
"""
|
| 54 |
voice = voice or "af_heart"
|
| 55 |
+
if voice not in VOICES.values():
|
| 56 |
raise ValueError(f"Voice '{voice}' is not available.")
|
| 57 |
|
| 58 |
kokoro_lang = voice[0]
|
mcp_host/ui.py
CHANGED
|
@@ -30,7 +30,7 @@ def UI(products_state: gr.State, image_state: gr.State):
|
|
| 30 |
</div>""",
|
| 31 |
container=True,
|
| 32 |
max_height=600,
|
| 33 |
-
min_height=
|
| 34 |
padding=False,
|
| 35 |
)
|
| 36 |
|
|
|
|
| 30 |
</div>""",
|
| 31 |
container=True,
|
| 32 |
max_height=600,
|
| 33 |
+
min_height=450,
|
| 34 |
padding=False,
|
| 35 |
)
|
| 36 |
|