Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ def find_midi(search_string, search_options):
|
|
| 65 |
return_score_analysis=False,
|
| 66 |
return_enhanced_score_notes=True)[0]
|
| 67 |
|
| 68 |
-
print('Sample INTs',
|
| 69 |
print('=' * 70)
|
| 70 |
|
| 71 |
x = []
|
|
@@ -121,19 +121,19 @@ if __name__ == "__main__":
|
|
| 121 |
|
| 122 |
app = gr.Blocks()
|
| 123 |
with app:
|
| 124 |
-
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>MIDI Search</h1>")
|
| 125 |
-
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Search and explore
|
| 126 |
|
| 127 |
-
gr.Markdown("\n\n"
|
| 128 |
-
"
|
| 129 |
-
"Please see [
|
| 130 |
"[Open In Colab]"
|
| 131 |
-
"(https://colab.research.google.com/github/asigalov61/
|
| 132 |
" for all features"
|
| 133 |
)
|
| 134 |
|
| 135 |
search_string = gr.Textbox(label="Enter search prompt here", value="And Nothing Else Matters")
|
| 136 |
-
search_options = gr.CheckboxGroup(["Titles", "Lyrics", "Summaries"], label="Search within", info="Where to search?")
|
| 137 |
submit = gr.Button()
|
| 138 |
|
| 139 |
gr.Markdown("# Search results")
|
|
|
|
| 65 |
return_score_analysis=False,
|
| 66 |
return_enhanced_score_notes=True)[0]
|
| 67 |
|
| 68 |
+
print('Sample INTs', raw_score[1][:5])
|
| 69 |
print('=' * 70)
|
| 70 |
|
| 71 |
x = []
|
|
|
|
| 121 |
|
| 122 |
app = gr.Blocks()
|
| 123 |
with app:
|
| 124 |
+
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Karaoke MIDI Search</h1>")
|
| 125 |
+
gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Search and explore 5865 select Karaoke MIDI titles</h1>")
|
| 126 |
|
| 127 |
+
gr.Markdown("\n\n"
|
| 128 |
+
"Los Angeles MIDI Dataset Demo\n\n"
|
| 129 |
+
"Please see [Los Angeles MIDI Dataset](https://github.com/asigalov61/Los-Angeles-MIDI-Dataset) for more information and features\n\n"
|
| 130 |
"[Open In Colab]"
|
| 131 |
+
"(https://colab.research.google.com/github/asigalov61/Los-Angeles-MIDI-Dataset/blob/main/Los_Angeles_MIDI_Dataset_Search_and_Explore.ipynb)"
|
| 132 |
" for all features"
|
| 133 |
)
|
| 134 |
|
| 135 |
search_string = gr.Textbox(label="Enter search prompt here", value="And Nothing Else Matters")
|
| 136 |
+
search_options = gr.CheckboxGroup(["Titles", "Lyrics", "Summaries"], value="Lyrics", label="Search within", info="Where to search?")
|
| 137 |
submit = gr.Button()
|
| 138 |
|
| 139 |
gr.Markdown("# Search results")
|