Spaces:
Sleeping
Sleeping
direct input
Browse files
app.py
CHANGED
@@ -29,11 +29,6 @@ formatter = logging.Formatter(
|
|
29 |
ch.setFormatter(formatter)
|
30 |
logger.addHandler(ch)
|
31 |
|
32 |
-
inputs = [
|
33 |
-
gr.components.Audio(type="filepath", label="Add music audio file"),
|
34 |
-
gr.inputs.Audio(source="microphone", type="filepath"),
|
35 |
-
]
|
36 |
-
|
37 |
title = "One Model for All Music Understanding Tasks"
|
38 |
description = "An example of using the [MERT-v1-95M](https://huggingface.co/m-a-p/MERT-v1-95M) model as backbone to conduct multiple music understanding tasks with the universal representation. \n Due the hardware limitation of the machine hosting this demo (2 CPU and 16GB RAM) only the first 4 seconds of audio are used!"
|
39 |
with open('./README.md', 'r') as f:
|
@@ -191,7 +186,7 @@ demo = gr.Blocks()
|
|
191 |
with demo:
|
192 |
gr.Interface(
|
193 |
fn=convert_audio,
|
194 |
-
inputs=
|
195 |
outputs=outputs,
|
196 |
allow_flagging="never",
|
197 |
title=title,
|
|
|
29 |
ch.setFormatter(formatter)
|
30 |
logger.addHandler(ch)
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
title = "One Model for All Music Understanding Tasks"
|
33 |
description = "An example of using the [MERT-v1-95M](https://huggingface.co/m-a-p/MERT-v1-95M) model as backbone to conduct multiple music understanding tasks with the universal representation. \n Due the hardware limitation of the machine hosting this demo (2 CPU and 16GB RAM) only the first 4 seconds of audio are used!"
|
34 |
with open('./README.md', 'r') as f:
|
|
|
186 |
with demo:
|
187 |
gr.Interface(
|
188 |
fn=convert_audio,
|
189 |
+
inputs=gr.Audio(source="microphone"),
|
190 |
outputs=outputs,
|
191 |
allow_flagging="never",
|
192 |
title=title,
|