Spaces:
Running
Running
jonathanagustin
commited on
Commit
•
4e85e92
1
Parent(s):
15934ba
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -61,13 +61,15 @@ def main():
|
|
61 |
label="Echo",
|
62 |
value=VOICE_PREVIEW_FILES['echo'],
|
63 |
visible=True,
|
|
|
|
|
64 |
)
|
65 |
|
66 |
with gr.Blocks(title="OpenAI - Text to Speech") as demo:
|
67 |
-
gr.Markdown("# OpenAI Text-to-Speech Demo")
|
68 |
with gr.Row():
|
69 |
with gr.Column(scale=1):
|
70 |
gr.Markdown("### Voice Preview")
|
|
|
71 |
# Function to play the selected voice sample
|
72 |
def play_voice_sample(voice):
|
73 |
return gr.update(
|
|
|
61 |
label="Echo",
|
62 |
value=VOICE_PREVIEW_FILES['echo'],
|
63 |
visible=True,
|
64 |
+
show_download_button=False,
|
65 |
+
show_share_button=False
|
66 |
)
|
67 |
|
68 |
with gr.Blocks(title="OpenAI - Text to Speech") as demo:
|
|
|
69 |
with gr.Row():
|
70 |
with gr.Column(scale=1):
|
71 |
gr.Markdown("### Voice Preview")
|
72 |
+
|
73 |
# Function to play the selected voice sample
|
74 |
def play_voice_sample(voice):
|
75 |
return gr.update(
|