Spaces:
Runtime error
Runtime error
More layout changes.
Browse files
app.py
CHANGED
@@ -34,25 +34,10 @@ logger.addHandler(ch)
|
|
34 |
|
35 |
inputs = [
|
36 |
gr.components.Audio(type="filepath", label="Add music audio file"),
|
37 |
-
gr.inputs.Audio(source="microphone", type="filepath"),
|
38 |
-
]
|
39 |
-
live_inputs = [
|
40 |
-
gr.Audio(source="microphone",streaming=True, type="filepath"),
|
41 |
]
|
42 |
|
43 |
title = "Isai - toward better music understanding"
|
44 |
description = "This space uses MERT-95M model to peform various music information retrieval tasks."
|
45 |
-
# article = "The tasks include EMO, GS, MTGInstrument, MTGGenre, MTGTop50, MTGMood, NSynthI, NSynthP, VocalSetS, VocalSetT. \n\n More models can be referred at the [map organization page](https://huggingface.co/m-a-p)."
|
46 |
-
with open('./README.md', 'r') as f:
|
47 |
-
# skip the header
|
48 |
-
header_count = 0
|
49 |
-
for line in f:
|
50 |
-
if '---' in line:
|
51 |
-
header_count += 1
|
52 |
-
if header_count >= 2:
|
53 |
-
break
|
54 |
-
# read the rest conent
|
55 |
-
article = f.read()
|
56 |
|
57 |
audio_examples = [
|
58 |
# ["input/example-1.wav"],
|
@@ -211,7 +196,7 @@ audio_chunked = gr.Interface(
|
|
211 |
title=title,
|
212 |
description=description,
|
213 |
# article=article,
|
214 |
-
examples=audio_examples,
|
215 |
)
|
216 |
|
217 |
# live_audio_chunked = gr.Interface(
|
|
|
34 |
|
35 |
inputs = [
|
36 |
gr.components.Audio(type="filepath", label="Add music audio file"),
|
|
|
|
|
|
|
|
|
37 |
]
|
38 |
|
39 |
title = "Isai - toward better music understanding"
|
40 |
description = "This space uses MERT-95M model to peform various music information retrieval tasks."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
audio_examples = [
|
43 |
# ["input/example-1.wav"],
|
|
|
196 |
title=title,
|
197 |
description=description,
|
198 |
# article=article,
|
199 |
+
# examples=audio_examples,
|
200 |
)
|
201 |
|
202 |
# live_audio_chunked = gr.Interface(
|