Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,8 +129,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 129 |
btn = gr.Button(value="generate")
|
| 130 |
|
| 131 |
with gr.Column():
|
| 132 |
-
output = gr.Image(label="audio")
|
| 133 |
-
|
|
|
|
| 134 |
|
| 135 |
# Pre-load the model to avoid multiprocessing issues
|
| 136 |
model, model_config = load_model()
|
|
|
|
| 129 |
btn = gr.Button(value="generate")
|
| 130 |
|
| 131 |
with gr.Column():
|
| 132 |
+
# output = gr.Image(label="audio")
|
| 133 |
+
output_byte_code = gr.Textbox(label="Byte Code Output")
|
| 134 |
+
btn.click(generate_audio,inputs=[prompt,duration, steps, cfg],outputs=output_byte_code,api_name="genAudio")
|
| 135 |
|
| 136 |
# Pre-load the model to avoid multiprocessing issues
|
| 137 |
model, model_config = load_model()
|