Commit
·
42739f2
1
Parent(s):
4e53ed5
Add some icons and share button
Browse files
main.py
CHANGED
|
@@ -56,6 +56,7 @@ demo = gr.Blocks()
|
|
| 56 |
def run():
|
| 57 |
with demo:
|
| 58 |
gr.HTML(DESCRIPTION)
|
|
|
|
| 59 |
with gr.Row():
|
| 60 |
with gr.Column():
|
| 61 |
temp = gr.Slider(
|
|
@@ -65,13 +66,13 @@ def run():
|
|
| 65 |
choices=genres, value="POP", label="Select the genre"
|
| 66 |
)
|
| 67 |
with gr.Row():
|
| 68 |
-
btn_from_scratch = gr.Button("Start from scratch")
|
| 69 |
-
btn_continue = gr.Button("Continue Generation")
|
| 70 |
-
btn_remove_last = gr.Button("Remove last instrument")
|
| 71 |
-
btn_regenerate_last = gr.Button("Regenerate last instrument")
|
| 72 |
with gr.Column():
|
| 73 |
with gr.Box():
|
| 74 |
-
audio_output = gr.Video()
|
| 75 |
midi_file = gr.File()
|
| 76 |
with gr.Row():
|
| 77 |
qpm = gr.Slider(
|
|
|
|
| 56 |
def run():
|
| 57 |
with demo:
|
| 58 |
gr.HTML(DESCRIPTION)
|
| 59 |
+
gr.DuplicateButton(value="Duplicate Space for private use")
|
| 60 |
with gr.Row():
|
| 61 |
with gr.Column():
|
| 62 |
temp = gr.Slider(
|
|
|
|
| 66 |
choices=genres, value="POP", label="Select the genre"
|
| 67 |
)
|
| 68 |
with gr.Row():
|
| 69 |
+
btn_from_scratch = gr.Button("🧹 Start from scratch")
|
| 70 |
+
btn_continue = gr.Button("➡️ Continue Generation")
|
| 71 |
+
btn_remove_last = gr.Button("↩️ Remove last instrument")
|
| 72 |
+
btn_regenerate_last = gr.Button("🔄 Regenerate last instrument")
|
| 73 |
with gr.Column():
|
| 74 |
with gr.Box():
|
| 75 |
+
audio_output = gr.Video(show_share_button=True)
|
| 76 |
midi_file = gr.File()
|
| 77 |
with gr.Row():
|
| 78 |
qpm = gr.Slider(
|