Spaces:
Sleeping
Sleeping
Commit
•
e94f209
1
Parent(s):
ceb92ad
Add examples and pin the requirements (#5)
Browse files- Add examples and pin the requirements (28d0e90ce1b88bd7648fb8646fac01544f7e7917)
Co-authored-by: Radamés Ajna <[email protected]>
- app.py +9 -0
- examples/BornThisWay.mp3 +0 -0
- examples/Sk8erBoi.mp3 +0 -0
- requirements.txt +3 -3
app.py
CHANGED
@@ -83,6 +83,15 @@ with block:
|
|
83 |
out = gr.Audio(label="Output")
|
84 |
midi_out = gr.File(label="Download Midi")
|
85 |
btn.click(inference, inputs=[file_up, composer], outputs=[out, midi_out])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
gr.HTML(
|
87 |
"""
|
88 |
<div class="footer">
|
|
|
83 |
out = gr.Audio(label="Output")
|
84 |
midi_out = gr.File(label="Download Midi")
|
85 |
btn.click(inference, inputs=[file_up, composer], outputs=[out, midi_out])
|
86 |
+
gr.Examples([
|
87 |
+
["./examples/BornThisWay.mp3", "composer1"],
|
88 |
+
["./examples/Sk8erBoi.mp3", "composer2"]
|
89 |
+
],
|
90 |
+
fn=inference,
|
91 |
+
inputs=[file_up, composer],
|
92 |
+
outputs=[out, midi_out],
|
93 |
+
cache_examples=True
|
94 |
+
)
|
95 |
gr.HTML(
|
96 |
"""
|
97 |
<div class="footer">
|
examples/BornThisWay.mp3
ADDED
Binary file (482 kB). View file
|
|
examples/Sk8erBoi.mp3
ADDED
Binary file (673 kB). View file
|
|
requirements.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
pretty-midi==0.2.9
|
2 |
omegaconf==2.1.1
|
3 |
transformers==4.16.1
|
4 |
-
pytorch-lightning
|
5 |
essentia==2.1b6.dev609
|
6 |
note-seq==0.0.3
|
7 |
pyFluidSynth==1.3.0
|
8 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
9 |
-
torch
|
10 |
-
torchaudio
|
|
|
1 |
pretty-midi==0.2.9
|
2 |
omegaconf==2.1.1
|
3 |
transformers==4.16.1
|
4 |
+
pytorch-lightning==1.8.3
|
5 |
essentia==2.1b6.dev609
|
6 |
note-seq==0.0.3
|
7 |
pyFluidSynth==1.3.0
|
8 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
9 |
+
torch==1.13.1
|
10 |
+
torchaudio==0.13.1
|