Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def preview_audio(audio_file):
|
|
62 |
|
63 |
# Gradio UI
|
64 |
with gr.Blocks() as demo:
|
65 |
-
gr.Markdown("# Animalese.
|
66 |
|
67 |
text_input = gr.Textbox(label="Input Text", placeholder="Enter text to convert to Animalese")
|
68 |
shorten_input = gr.Checkbox(label="Shorten Words")
|
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
|
|
72 |
preview_button = gr.Button("Preview!")
|
73 |
download_button = gr.Button("Download!")
|
74 |
|
75 |
-
audio_output = gr.Audio(label="Output Audio")
|
76 |
|
77 |
preview_button.click(fn=lambda text, shorten, pitch: preview_audio(generate_audio(text, shorten, pitch)),
|
78 |
inputs=[text_input, shorten_input, pitch_input],
|
|
|
62 |
|
63 |
# Gradio UI
|
64 |
with gr.Blocks() as demo:
|
65 |
+
gr.Markdown("# Animalese.py Demo")
|
66 |
|
67 |
text_input = gr.Textbox(label="Input Text", placeholder="Enter text to convert to Animalese")
|
68 |
shorten_input = gr.Checkbox(label="Shorten Words")
|
|
|
72 |
preview_button = gr.Button("Preview!")
|
73 |
download_button = gr.Button("Download!")
|
74 |
|
75 |
+
audio_output = gr.Audio(label="Output Audio", autoplay=True)
|
76 |
|
77 |
preview_button.click(fn=lambda text, shorten, pitch: preview_audio(generate_audio(text, shorten, pitch)),
|
78 |
inputs=[text_input, shorten_input, pitch_input],
|