Spaces:
Running
Running
admin
commited on
Commit
·
da9545e
1
Parent(s):
aa904d9
sync ms
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ import requests
|
|
7 |
import modelscope
|
8 |
import huggingface_hub
|
9 |
import gradio as gr
|
|
|
10 |
from piano_transcription_inference import PianoTranscription, load_audio, sample_rate
|
11 |
from urllib.parse import urlparse
|
12 |
-
from tqdm import tqdm
|
13 |
from convert import midi2xml, xml2abc, xml2mxl, xml2jpg
|
14 |
|
15 |
EN_US = os.getenv("LANG") != "zh_CN.UTF-8"
|
@@ -29,7 +29,7 @@ ZH2EN = {
|
|
29 |
"输入音频 URL 直链": "Input audio direct link",
|
30 |
"下载音频": "Download audio",
|
31 |
"网易云音乐可直接输入非 VIP 歌曲页面链接自动解析": "For Netease Cloud music, you can directly input the non-VIP song page link",
|
32 |
-
"# 钢琴转谱工具": "Piano Transcription Tool",
|
33 |
}
|
34 |
|
35 |
WEIGHTS_PATH = (
|
|
|
7 |
import modelscope
|
8 |
import huggingface_hub
|
9 |
import gradio as gr
|
10 |
+
from tqdm import tqdm
|
11 |
from piano_transcription_inference import PianoTranscription, load_audio, sample_rate
|
12 |
from urllib.parse import urlparse
|
|
|
13 |
from convert import midi2xml, xml2abc, xml2mxl, xml2jpg
|
14 |
|
15 |
EN_US = os.getenv("LANG") != "zh_CN.UTF-8"
|
|
|
29 |
"输入音频 URL 直链": "Input audio direct link",
|
30 |
"下载音频": "Download audio",
|
31 |
"网易云音乐可直接输入非 VIP 歌曲页面链接自动解析": "For Netease Cloud music, you can directly input the non-VIP song page link",
|
32 |
+
"# 钢琴转谱工具": "# Piano Transcription Tool",
|
33 |
}
|
34 |
|
35 |
WEIGHTS_PATH = (
|