Spaces:
Running on Zero
Running on Zero
Describe what each control does to the sound
Browse files
app.py
CHANGED
|
@@ -82,7 +82,10 @@ def process_fn(input_audio_path: str) -> str:
|
|
| 82 |
|
| 83 |
if __name__ == "__main__":
|
| 84 |
with gr.Blocks() as demo:
|
| 85 |
-
input_audio = gr.Audio(label="Upload Solo Piano Audio", type="filepath").harp_required(True)
|
|
|
|
|
|
|
|
|
|
| 86 |
#output_midi = gr.File(label="Output MIDI File", file_types=[".mid"]).harp_required(True)
|
| 87 |
|
| 88 |
# ensure this is serialized as midi_track
|
|
@@ -90,7 +93,7 @@ if __name__ == "__main__":
|
|
| 90 |
label="Output MIDI File",
|
| 91 |
file_types=[".mid", ".midi"],
|
| 92 |
type="filepath"
|
| 93 |
-
).harp_required(True)
|
| 94 |
|
| 95 |
|
| 96 |
app = build_endpoint(
|
|
|
|
| 82 |
|
| 83 |
if __name__ == "__main__":
|
| 84 |
with gr.Blocks() as demo:
|
| 85 |
+
input_audio = gr.Audio(label="Upload Solo Piano Audio", type="filepath").harp_required(True).set_info((
|
| 86 |
+
"A solo piano recording. Trained on piano alone, so other "
|
| 87 |
+
"instruments in the recording will confuse it."
|
| 88 |
+
))
|
| 89 |
#output_midi = gr.File(label="Output MIDI File", file_types=[".mid"]).harp_required(True)
|
| 90 |
|
| 91 |
# ensure this is serialized as midi_track
|
|
|
|
| 93 |
label="Output MIDI File",
|
| 94 |
file_types=[".mid", ".midi"],
|
| 95 |
type="filepath"
|
| 96 |
+
).harp_required(True).set_info("The transcribed notes, with onsets, offsets and velocities.")
|
| 97 |
|
| 98 |
|
| 99 |
app = build_endpoint(
|