ItzRoBeerT commited on
Commit
5551363
·
verified ·
1 Parent(s): f3cbad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,7 +13,7 @@ function createGradioAnimation() {
13
  container.style.textAlign = 'center';
14
  container.style.marginBottom = '20px';
15
 
16
- var text = 'Speech Generation!';
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 Speech", variant="primary")
62
- audio_output = gr.Audio(label="Generated Speech")
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