reach-vb HF staff commited on
Commit
59b84ef
1 Parent(s): 4b50ebb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -0
app.py CHANGED
@@ -39,6 +39,29 @@ They use a simple two-stage process: MIDI to spectrograms with an encoder-decode
39
 
40
  examples = ["examples/beethoven_mond_2.mid", "examples/beethoven_hammerklavier_2.mid"]
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  gr.Interface(
43
  fn=predict,
44
  inputs=[
@@ -51,4 +74,5 @@ gr.Interface(
51
  description=description,
52
  theme="gradio/monochrome",
53
  examples=examples,
 
54
  ).launch(debug=True)
 
39
 
40
  examples = ["examples/beethoven_mond_2.mid", "examples/beethoven_hammerklavier_2.mid"]
41
 
42
+ gr.HTML("""
43
+ <p>For faster inference without waiting in the queue, you should duplicate this space and upgrade to GPU via the settings.
44
+ <br/>
45
+ <a href="https://huggingface.co/spaces/reach-vb/music-spectrogram-diffusion?duplicate=true">
46
+ <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
47
+ </p>""")
48
+
49
+ article = """
50
+ <div style='margin:20px auto;'>
51
+ <p>References: <a href="https://arxiv.org/abs/2206.05408">Music Spectrogram Diffusion paper</a> |
52
+ <a href="https://github.com/magenta/music-spectrogram-diffusion">original GitHub</a> |
53
+ <a href="https://github.com/magenta/music-spectrogram-diffusion#pretrained-models">original weights</a></p>
54
+ <pre>
55
+ @article{hawthorne2022multi,
56
+ title={Multi-instrument music synthesis with spectrogram diffusion},
57
+ author={Hawthorne, Curtis and Simon, Ian and Roberts, Adam and Zeghidour, Neil and Gardner, Josh and Manilow, Ethan and Engel, Jesse},
58
+ journal={arXiv preprint arXiv:2206.05408},
59
+ year={2022}
60
+ }
61
+ </pre>
62
+ </div>
63
+ """
64
+
65
  gr.Interface(
66
  fn=predict,
67
  inputs=[
 
74
  description=description,
75
  theme="gradio/monochrome",
76
  examples=examples,
77
+ article=article,
78
  ).launch(debug=True)