Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ function createGradioAnimation() {
|
|
| 13 |
container.style.textAlign = 'center';
|
| 14 |
container.style.marginBottom = '20px';
|
| 15 |
|
| 16 |
-
var text = '
|
| 17 |
for (var i = 0; i < text.length; i++) {
|
| 18 |
(function(i){
|
| 19 |
setTimeout(function(){
|
|
@@ -58,8 +58,8 @@ def say_something(text):
|
|
| 58 |
|
| 59 |
with gr.Blocks(js=js) as demo:
|
| 60 |
textBox = gr.Textbox(label="Text", value="Hello! [laugths]. This is a test!")
|
| 61 |
-
button = gr.Button("Generate
|
| 62 |
-
audio_output = gr.Audio(label="Generated
|
| 63 |
button.click(say_something, inputs=textBox, outputs=audio_output)
|
| 64 |
|
| 65 |
|
|
|
|
| 13 |
container.style.textAlign = 'center';
|
| 14 |
container.style.marginBottom = '20px';
|
| 15 |
|
| 16 |
+
var text = 'Audio Generation!';
|
| 17 |
for (var i = 0; i < text.length; i++) {
|
| 18 |
(function(i){
|
| 19 |
setTimeout(function(){
|
|
|
|
| 58 |
|
| 59 |
with gr.Blocks(js=js) as demo:
|
| 60 |
textBox = gr.Textbox(label="Text", value="Hello! [laugths]. This is a test!")
|
| 61 |
+
button = gr.Button("Generate Audio", variant="primary")
|
| 62 |
+
audio_output = gr.Audio(label="Generated Audio")
|
| 63 |
button.click(say_something, inputs=textBox, outputs=audio_output)
|
| 64 |
|
| 65 |
|