Hmjz100 commited on
Commit
7e4c64c
1 Parent(s): 89047c0

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -282,9 +282,9 @@ def inference(audio):
282
  title = "MT3"
283
  description = "MT3:多任务多音轨音乐转录的 Gradio 演示。要使用它,只需上传音频文件,或点击示例以加载它们。更多信息请参阅下面的链接。"
284
 
285
- article = "<p style='text-align: center'>出错了?试试把文件转换为MP3后再上传 | <a href='https://arxiv.org/abs/2111.03017' target='_blank'>MT3: 多任务多音轨音乐转录</a> | <a href='https://github.com/magenta/mt3' target='_blank'>Github 仓库</a></p>"
286
 
287
- examples=[['canon.flac'], ['download.wav']]
288
 
289
  gr.Interface(
290
  inference,
@@ -293,8 +293,9 @@ gr.Interface(
293
  title=title,
294
  description=description,
295
  article=article,
296
- examples=examples,
297
- examples_label="示例",
 
298
  allow_flagging=False,
299
  allow_screenshot=False,
300
  enable_queue=True
 
282
  title = "MT3"
283
  description = "MT3:多任务多音轨音乐转录的 Gradio 演示。要使用它,只需上传音频文件,或点击示例以加载它们。更多信息请参阅下面的链接。"
284
 
285
+ article = "<p style='text-align: center'>出错了?试试把文件转换为MP3后再上传吧~</p><p style='text-align: center'><a href='https://arxiv.org/abs/2111.03017' target='_blank'>MT3: 多任务多音轨音乐转录</a> | <a href='https://github.com/magenta/mt3' target='_blank'>Github 仓库</a></p>"
286
 
287
+ # examples=[['download.wav']]
288
 
289
  gr.Interface(
290
  inference,
 
293
  title=title,
294
  description=description,
295
  article=article,
296
+ examples=gr.Interface.Examples([
297
+ ['canon.flac'], ['download.wav'],
298
+ ], label="示例"),
299
  allow_flagging=False,
300
  allow_screenshot=False,
301
  enable_queue=True