jadechoghari
commited on
Commit
•
4fc6482
1
Parent(s):
3fd54c3
update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ os.system('pip install xformers==0.0.26.post1')
|
|
11 |
os.system('pip install torchlibrosa==0.0.9 librosa==0.9.2')
|
12 |
os.system('pip install -q pytorch_lightning==2.1.3 torchlibrosa==0.0.9 librosa==0.9.2 ftfy==6.1.1 braceexpand')
|
13 |
os.system('pip install torch==2.3.0+cu121 torchvision==0.18.0+cu121 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121')
|
14 |
-
os.system('pip install numpy==1.
|
15 |
|
16 |
# only then import the necessary modules from qa_mdt
|
17 |
from qa_mdt.pipeline import MOSDiffusionPipeline
|
@@ -37,7 +37,12 @@ iface = gr.Interface(
|
|
37 |
inputs=gr.Textbox(lines=2, placeholder="Enter a music description here..."),
|
38 |
outputs=gr.Audio(label="Download the Music 🎼"),
|
39 |
title="Flux Music Diffusion Pipeline",
|
40 |
-
description="Enter a music description, and the model will generate a corresponding audio waveform. Download the output as 'awesome.wav'."
|
|
|
|
|
|
|
|
|
|
|
41 |
)
|
42 |
|
43 |
# Launch the Gradio app
|
|
|
11 |
os.system('pip install torchlibrosa==0.0.9 librosa==0.9.2')
|
12 |
os.system('pip install -q pytorch_lightning==2.1.3 torchlibrosa==0.0.9 librosa==0.9.2 ftfy==6.1.1 braceexpand')
|
13 |
os.system('pip install torch==2.3.0+cu121 torchvision==0.18.0+cu121 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121')
|
14 |
+
os.system('pip install numpy==1.26.4')
|
15 |
|
16 |
# only then import the necessary modules from qa_mdt
|
17 |
from qa_mdt.pipeline import MOSDiffusionPipeline
|
|
|
37 |
inputs=gr.Textbox(lines=2, placeholder="Enter a music description here..."),
|
38 |
outputs=gr.Audio(label="Download the Music 🎼"),
|
39 |
title="Flux Music Diffusion Pipeline",
|
40 |
+
description="Enter a music description, and the model will generate a corresponding audio waveform. Download the output as 'awesome.wav'.",
|
41 |
+
examples=[
|
42 |
+
["a guitar like pop"],
|
43 |
+
["a man singing jazz"]
|
44 |
+
],
|
45 |
+
cache_examples=True
|
46 |
)
|
47 |
|
48 |
# Launch the Gradio app
|