Spaces:
Runtime error
Runtime error
Update interface.
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ live_inputs = [
|
|
40 |
gr.Audio(source="microphone",streaming=True, type="filepath"),
|
41 |
]
|
42 |
|
43 |
-
title = "
|
44 |
-
description = "
|
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
|
@@ -210,34 +210,34 @@ audio_chunked = gr.Interface(
|
|
210 |
allow_flagging="never",
|
211 |
title=title,
|
212 |
description=description,
|
213 |
-
article=article,
|
214 |
examples=audio_examples,
|
215 |
)
|
216 |
|
217 |
-
live_audio_chunked = gr.Interface(
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
)
|
228 |
-
|
229 |
-
|
230 |
-
demo = gr.Blocks()
|
231 |
-
with demo:
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
# demo.queue(concurrency_count=1, max_size=5)
|
243 |
-
|
|
|
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
|
|
|
210 |
allow_flagging="never",
|
211 |
title=title,
|
212 |
description=description,
|
213 |
+
# article=article,
|
214 |
examples=audio_examples,
|
215 |
)
|
216 |
|
217 |
+
# live_audio_chunked = gr.Interface(
|
218 |
+
# fn=live_convert_audio,
|
219 |
+
# inputs=live_inputs,
|
220 |
+
# outputs=outputs_live,
|
221 |
+
# allow_flagging="never",
|
222 |
+
# title=title,
|
223 |
+
# description=description,
|
224 |
+
# article=article,
|
225 |
+
# # examples=audio_examples,
|
226 |
+
# live=True,
|
227 |
+
# )
|
228 |
+
|
229 |
+
|
230 |
+
# demo = gr.Blocks()
|
231 |
+
# with demo:
|
232 |
+
# gr.TabbedInterface(
|
233 |
+
# [
|
234 |
+
# audio_chunked,
|
235 |
+
# live_audio_chunked,
|
236 |
+
# ],
|
237 |
+
# [
|
238 |
+
# "Audio File or Recording",
|
239 |
+
# "Live Streaming Music"
|
240 |
+
# ]
|
241 |
+
# )
|
242 |
# demo.queue(concurrency_count=1, max_size=5)
|
243 |
+
audio_chunked.launch(show_api=False)
|