kakamond commited on
Commit
3b26d67
·
verified ·
1 Parent(s): 8b13692

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -14,10 +14,7 @@ from convert import midi2xml, xml2abc, xml2mxl, xml2jpg
14
 
15
  CACHE_DIR = "./flagged"
16
  WEIGHTS_PATH = (
17
- snapshot_download(
18
- "Genius-Society/piano_transcription",
19
- cache_dir="./__pycache__",
20
- )
21
  + "/CRNN_note_F1=0.9677_pedal_F1=0.9186.pth"
22
  )
23
 
@@ -186,7 +183,7 @@ if __name__ == "__main__":
186
  gr.Image(label="五线谱 (Staff)", type="filepath"),
187
  ],
188
  title="请上传音频 100% 后再点提交<br>Please make sure the audio is completely uploaded before clicking Submit",
189
- allow_flagging="never",
190
  )
191
 
192
  with gr.Tab("直链模式 (Direct Link Mode)"):
@@ -208,7 +205,7 @@ if __name__ == "__main__":
208
  "https://music.163.com/#/song?id=1945798973",
209
  "https://music.163.com/#/song?id=1946098771",
210
  ],
211
- allow_flagging="never",
212
  cache_examples=False,
213
  )
214
 
 
14
 
15
  CACHE_DIR = "./flagged"
16
  WEIGHTS_PATH = (
17
+ snapshot_download("Genius-Society/piano_transcription", cache_dir="./__pycache__")
 
 
 
18
  + "/CRNN_note_F1=0.9677_pedal_F1=0.9186.pth"
19
  )
20
 
 
183
  gr.Image(label="五线谱 (Staff)", type="filepath"),
184
  ],
185
  title="请上传音频 100% 后再点提交<br>Please make sure the audio is completely uploaded before clicking Submit",
186
+ flagging_mode="never",
187
  )
188
 
189
  with gr.Tab("直链模式 (Direct Link Mode)"):
 
205
  "https://music.163.com/#/song?id=1945798973",
206
  "https://music.163.com/#/song?id=1946098771",
207
  ],
208
+ flagging_mode="never",
209
  cache_examples=False,
210
  )
211