Spaces:
IvanGonher
/
Runtime error

vagmi commited on
Commit
13d034e
·
1 Parent(s): abce0d3

Update interface.

Browse files
Files changed (1) hide show
  1. app.py +29 -29
app.py CHANGED
@@ -40,8 +40,8 @@ live_inputs = [
40
  gr.Audio(source="microphone",streaming=True, type="filepath"),
41
  ]
42
 
43
- title = "One Model for All Music Understanding Tasks"
44
- 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 represenation."
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
- 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
- demo.launch(show_api=False)
 
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)