harp-dev Claude Opus 5.5 commited on
Commit
6b58e33
·
verified ·
1 Parent(s): 69da1b7

Return an AIFF input as WAV and reword the interface text

Browse files

HARP accepts .aif, the extension Logic Pro gives AIFF, but soundfile cannot write a file named with it, so such an input failed when its result was written, inside the GPU call. Gradio also converts an AIFF output to 16-bit WAV, since browsers cannot play AIFF, so keeping that container gained nothing. Lossless inputs now keep WAV and FLAC alone, and AIFF comes back as WAV at the bit depth this Space writes.

Some of the description and help text joined clauses with a semicolon or ended a sentence with a preposition, and each such sentence is reworded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,7 +40,7 @@ model_card = ModelCard(
40
 
41
  # A lossless input keeps its container. A lossy one comes back as WAV, since encoding the result
42
  # lossily again would expose the artifacts of the first encode and add a second set.
43
- LOSSLESS = {".wav", ".flac", ".aiff", ".aif"}
44
 
45
  ckpt_path = None
46
  ckpt_error = None
@@ -197,7 +197,7 @@ if __name__ == "__main__":
197
  label="Instruction",
198
  value="Only Drums",
199
  info="What to change: add/only/no + an instrument, e.g. 'Only Drums', 'No Bass', "
200
- "'Add Piano' (per the model's demo examples; piano/bass/drums/guitar work best)",
201
  ),
202
  ]
203
  output_components = [
 
40
 
41
  # A lossless input keeps its container. A lossy one comes back as WAV, since encoding the result
42
  # lossily again would expose the artifacts of the first encode and add a second set.
43
+ LOSSLESS = {".wav", ".flac"}
44
 
45
  ckpt_path = None
46
  ckpt_error = None
 
197
  label="Instruction",
198
  value="Only Drums",
199
  info="What to change: add/only/no + an instrument, e.g. 'Only Drums', 'No Bass', "
200
+ "'Add Piano', as in the model's demo examples. Piano, bass, drums, and guitar work best.",
201
  ),
202
  ]
203
  output_components = [