asigalov61
commited on
Commit
•
06f7611
1
Parent(s):
90afa2e
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# =================================================================================================
|
2 |
-
# https://huggingface.co/spaces/asigalov61/
|
3 |
# =================================================================================================
|
4 |
|
5 |
import os
|
@@ -338,15 +338,12 @@ if __name__ == "__main__":
|
|
338 |
|
339 |
app = gr.Blocks()
|
340 |
with app:
|
341 |
-
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>
|
342 |
-
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>
|
343 |
gr.Markdown(
|
344 |
-
"![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.
|
345 |
"This is a demo for Tegridy MIDI Dataset\n\n"
|
346 |
"Check out [Tegridy MIDI Dataset](https://github.com/asigalov61/Tegridy-MIDI-Dataset) on GitHub!\n\n"
|
347 |
-
"[Open In Colab]"
|
348 |
-
"(https://colab.research.google.com/github/asigalov61/Tegridy-MIDI-Dataset/blob/master/Chords-Progressions/Pitches_Chords_Progressions_Generator.ipynb)"
|
349 |
-
" for all options, faster execution and endless generation"
|
350 |
)
|
351 |
|
352 |
gr.Markdown("## Select generation options")
|
@@ -359,7 +356,7 @@ if __name__ == "__main__":
|
|
359 |
chords_progression_MIDI_patch_number = gr.Slider(0, 127, value=0, step=1, label="Chords progression MIDI patch number")
|
360 |
base_MIDI_patch_number = gr.Slider(0, 127, value=35, step=1, label="Base MIDI patch number")
|
361 |
|
362 |
-
run_btn = gr.Button("
|
363 |
|
364 |
gr.Markdown("## Generation results")
|
365 |
|
|
|
1 |
# =================================================================================================
|
2 |
+
# https://huggingface.co/spaces/asigalov61/Monophonic-MIDI-Melody-Harmonizer
|
3 |
# =================================================================================================
|
4 |
|
5 |
import os
|
|
|
338 |
|
339 |
app = gr.Blocks()
|
340 |
with app:
|
341 |
+
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Monophonic MIDI Melody Harmonizer</h1>")
|
342 |
+
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Retrieval augmented harmonization of any MIDI melody</h1>")
|
343 |
gr.Markdown(
|
344 |
+
"![Visitors](https://api.visitorbadge.io/api/visitors?path=asigalov61.Monophonic-MIDI-Melody-Harmonizer&style=flat)\n\n"
|
345 |
"This is a demo for Tegridy MIDI Dataset\n\n"
|
346 |
"Check out [Tegridy MIDI Dataset](https://github.com/asigalov61/Tegridy-MIDI-Dataset) on GitHub!\n\n"
|
|
|
|
|
|
|
347 |
)
|
348 |
|
349 |
gr.Markdown("## Select generation options")
|
|
|
356 |
chords_progression_MIDI_patch_number = gr.Slider(0, 127, value=0, step=1, label="Chords progression MIDI patch number")
|
357 |
base_MIDI_patch_number = gr.Slider(0, 127, value=35, step=1, label="Base MIDI patch number")
|
358 |
|
359 |
+
run_btn = gr.Button("harmonize", variant="primary")
|
360 |
|
361 |
gr.Markdown("## Generation results")
|
362 |
|