jadechoghari commited on
Commit
39a196c
โ€ข
1 Parent(s): a66e2eb

fix readme + markdown

Browse files
Files changed (2) hide show
  1. app.py +25 -3
  2. banner.png +0 -0
app.py CHANGED
@@ -30,16 +30,38 @@ def generate_waveform(description):
30
  else:
31
  return "Error: Failed to generate the waveform."
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  # gradio interface
34
  iface = gr.Interface(
 
35
  fn=generate_waveform,
36
  inputs=gr.Textbox(lines=2, placeholder="Enter a music description here..."),
37
  outputs=gr.Audio(label="Download the Music ๐ŸŽผ"),
38
- title="Flux Music Diffusion Pipeline",
39
  description="Enter a music description, and the model will generate a corresponding audio waveform. Download the output as 'awesome.wav'.",
40
  examples=[
41
- ["a guitar like pop"],
42
- ["a man singing jazz"]
43
  ],
44
  cache_examples=True
45
  )
 
30
  else:
31
  return "Error: Failed to generate the waveform."
32
 
33
+
34
+ intro = """
35
+ # ๐ŸŽถ OpenMusic: AI-Powered Music Diffusion ๐ŸŽถ
36
+
37
+ ![OpenMusic Banner](./banner.png)
38
+
39
+ Welcome to **OpenMusic**, a next-gen diffusion model designed to generate high-quality audio from text descriptions!
40
+
41
+ Simply enter a description of the music you'd like to hear, and our AI will generate it for you.
42
+
43
+ ---
44
+
45
+ ### Powered by:
46
+
47
+ - [GitHub Repository](https://github.com/ivcylc/qa-mdt) by [@changli](https://github.com/ivcylc) ๐ŸŽ“.
48
+ - Introduced in this [Paper](https://arxiv.org/pdf/2405.15863)
49
+ - Hugging Face Diffusers Implementation ๐Ÿงจ (Super easy to use): [Model](https://huggingface.co/jadechoghari/qa_mdt) by [@jadechoghari](https://github.com/jadechoghari) ๐Ÿค—.
50
+
51
+ ---
52
+
53
+ """
54
+
55
  # gradio interface
56
  iface = gr.Interface(
57
+ description=intro,
58
  fn=generate_waveform,
59
  inputs=gr.Textbox(lines=2, placeholder="Enter a music description here..."),
60
  outputs=gr.Audio(label="Download the Music ๐ŸŽผ"),
 
61
  description="Enter a music description, and the model will generate a corresponding audio waveform. Download the output as 'awesome.wav'.",
62
  examples=[
63
+ ["A modern synthesizer creating futuristic soundscapes."],
64
+ ["Acoustic ballad with heartfelt lyrics and soft piano."]
65
  ],
66
  cache_examples=True
67
  )
banner.png ADDED