Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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 |
-
|
34 |
|
35 |
-
return
|
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,
|
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()
|