reach-vb HF Staff commited on
Commit
7cc1557
·
1 Parent(s): b20e802

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,9 +30,9 @@ def generate_audio(text,):
30
  prompt = f"Take the next sentence and enrich it with details. Keep it compact. {text}"
31
  output = client.text_generation(prompt, max_new_tokens=100)
32
  out = vibes(output)
33
- audio = out["audio"][0]
34
 
35
- return audio
36
 
37
  css = """
38
  #container{
@@ -78,7 +78,7 @@ with gr.Blocks(css=css) as demo_blocks:
78
  """
79
  )
80
 
81
- btn.click(generate_audio, [inp_text, language], outputs)
82
 
83
 
84
  demo_blocks.queue().launch()
 
30
  prompt = f"Take the next sentence and enrich it with details. Keep it compact. {text}"
31
  output = client.text_generation(prompt, max_new_tokens=100)
32
  out = vibes(output)
33
+ np_audio = out["audio"][0]
34
 
35
+ return np_audio
36
 
37
  css = """
38
  #container{
 
78
  """
79
  )
80
 
81
+ btn.click(generate_audio, inp_text, np_audio)
82
 
83
 
84
  demo_blocks.queue().launch()