k-l-lambda commited on
Commit
04f9110
·
1 Parent(s): f5a62b9

Default audio fitting duration to 30 seconds

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +1 -1
README.md CHANGED
@@ -64,7 +64,7 @@ Select **Instrumental (sparse)** for music that benefits from fewer attacks and
64
  longer held notes. **Speech (dense)** keeps the existing 20 ms speech-oriented
65
  representation. Fitting style is independent of the input mode, so either is
66
  available after uploading audio or generating speech. The duration slider accepts
67
- 0.5–30 seconds; short recordings use their actual length. Instant poetry playback
68
  remains precomputed dense output, and selecting a poetry input resets the fitting
69
  style to Speech.
70
 
 
64
  longer held notes. **Speech (dense)** keeps the existing 20 ms speech-oriented
65
  representation. Fitting style is independent of the input mode, so either is
66
  available after uploading audio or generating speech. The duration slider accepts
67
+ 0.5–30 seconds and defaults to 30; short recordings use their actual length. Instant poetry playback
68
  remains precomputed dense output, and selecting a poetry input resets the fitting
69
  style to Speech.
70
 
app.py CHANGED
@@ -139,7 +139,7 @@ def build_ui():
139
  fitting_style = gr.Radio(['Speech (dense)', 'Instrumental (sparse)'], value='Speech (dense)',
140
  label='Fitting style', info='Speech keeps dense short notes. Instrumental uses fewer, longer notes.')
141
  with gr.Accordion('Fitting options', open=False):
142
- seconds = gr.Slider(.5, 30, value=8, step=.5, label='Fit the first N seconds')
143
  steps = gr.Slider(200, 1200, value=600, step=200, label='Fitting iterations',
144
  info='600 is the tested setting. More iterations take longer and may not improve clarity.')
145
  submit = gr.Button('Generate piano MIDI', variant='primary')
 
139
  fitting_style = gr.Radio(['Speech (dense)', 'Instrumental (sparse)'], value='Speech (dense)',
140
  label='Fitting style', info='Speech keeps dense short notes. Instrumental uses fewer, longer notes.')
141
  with gr.Accordion('Fitting options', open=False):
142
+ seconds = gr.Slider(.5, 30, value=30, step=.5, label='Fit the first N seconds')
143
  steps = gr.Slider(200, 1200, value=600, step=200, label='Fitting iterations',
144
  info='600 is the tested setting. More iterations take longer and may not improve clarity.')
145
  submit = gr.Button('Generate piano MIDI', variant='primary')