Update app.py
Browse files
app.py
CHANGED
|
@@ -34,23 +34,27 @@ css="""
|
|
| 34 |
margin: 0 auto;
|
| 35 |
max-width: 640px;
|
| 36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
"""
|
| 38 |
|
| 39 |
with gr.Blocks(css=css) as demo:
|
| 40 |
with gr.Column(elem_id="col-container"):
|
| 41 |
gr.HTML("""
|
| 42 |
-
<h2 style="text-align:
|
| 43 |
-
Generative
|
| 44 |
</h2>
|
| 45 |
<p style="text-align: center;">
|
| 46 |
</p>
|
| 47 |
""")
|
| 48 |
|
| 49 |
-
prompt_in = gr.Textbox(label="
|
| 50 |
with gr.Row():
|
| 51 |
duration = gr.Slider(label="Duration", minimum=1, maximum=30, step=1, value=5)
|
| 52 |
submit_btn = gr.Button("Generate")
|
| 53 |
-
audio_o = gr.Audio(label="Generative
|
| 54 |
|
| 55 |
submit_btn.click(
|
| 56 |
fn=infer,
|
|
@@ -58,6 +62,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 58 |
outputs=[audio_o]
|
| 59 |
)
|
| 60 |
|
| 61 |
-
# agent5.com
|
| 62 |
|
| 63 |
demo.queue().launch()
|
|
|
|
| 34 |
margin: 0 auto;
|
| 35 |
max-width: 640px;
|
| 36 |
}
|
| 37 |
+
|
| 38 |
+
footer {
|
| 39 |
+
visibility: hidden;
|
| 40 |
+
}
|
| 41 |
"""
|
| 42 |
|
| 43 |
with gr.Blocks(css=css) as demo:
|
| 44 |
with gr.Column(elem_id="col-container"):
|
| 45 |
gr.HTML("""
|
| 46 |
+
<h2 style="text-align: left;">
|
| 47 |
+
🎵 Generative Songs
|
| 48 |
</h2>
|
| 49 |
<p style="text-align: center;">
|
| 50 |
</p>
|
| 51 |
""")
|
| 52 |
|
| 53 |
+
prompt_in = gr.Textbox(label="song prompt")
|
| 54 |
with gr.Row():
|
| 55 |
duration = gr.Slider(label="Duration", minimum=1, maximum=30, step=1, value=5)
|
| 56 |
submit_btn = gr.Button("Generate")
|
| 57 |
+
audio_o = gr.Audio(label="Generative Song result")
|
| 58 |
|
| 59 |
submit_btn.click(
|
| 60 |
fn=infer,
|
|
|
|
| 62 |
outputs=[audio_o]
|
| 63 |
)
|
| 64 |
|
| 65 |
+
# agent5.com song creator
|
| 66 |
|
| 67 |
demo.queue().launch()
|