Vansh Chugh commited on
Commit
6017d6d
·
1 Parent(s): fed4376

cleanup: drop redundant checkbox default, add process_fn docstring, remove MuScriptor-repo gitignore entry

Browse files
Files changed (2) hide show
  1. .gitignore +0 -1
  2. app.py +1 -1
.gitignore CHANGED
@@ -2,4 +2,3 @@ __pycache__/
2
  *.pyc
3
  .DS_Store
4
  .venv/
5
- MuScriptor-repo/
 
2
  *.pyc
3
  .DS_Store
4
  .venv/
 
app.py CHANGED
@@ -75,6 +75,7 @@ def process_fn(
75
  use_sampling: bool,
76
  temperature: float,
77
  ) -> str:
 
78
  model = _get_model(variant)
79
  instruments = _parse_instruments(instruments_text)
80
 
@@ -107,7 +108,6 @@ with gr.Blocks() as demo:
107
  info="Comma-separated instrument names to restrict decoding to, e.g. acoustic_piano,violin,trumpet,drums,etc. Leave blank to let the model detect instruments on its own.",
108
  ),
109
  gr.Checkbox(
110
- value=False,
111
  label="Use Sampling",
112
  info="Temperature sampling instead of greedy decoding (default: False, per repo).",
113
  ),
 
75
  use_sampling: bool,
76
  temperature: float,
77
  ) -> str:
78
+ """Transcribe the input audio to a MIDI file and return its path."""
79
  model = _get_model(variant)
80
  instruments = _parse_instruments(instruments_text)
81
 
 
108
  info="Comma-separated instrument names to restrict decoding to, e.g. acoustic_piano,violin,trumpet,drums,etc. Leave blank to let the model detect instruments on its own.",
109
  ),
110
  gr.Checkbox(
 
111
  label="Use Sampling",
112
  info="Temperature sampling instead of greedy decoding (default: False, per repo).",
113
  ),