Codyfederer commited on
Commit
5c40a05
·
verified ·
1 Parent(s): fc7ae0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -163,12 +163,12 @@ def _infer(
163
  # Watermarking ensures transparency, dissuades misuse, and enables traceability.
164
  # Please be a responsible AI citizen and keep the watermarking in place.
165
  # If using CSM 1B in another application, use your own private key and keep it secret.
166
- audio_tensor, wm_sample_rate = watermark(
167
- generator._watermarker, audio_tensor, generator.sample_rate, CSM_1B_HF_WATERMARK
168
- )
169
- audio_tensor = torchaudio.functional.resample(
170
- audio_tensor, orig_freq=wm_sample_rate, new_freq=generator.sample_rate
171
- )
172
 
173
  audio_array = (audio_tensor * 32768).to(torch.int16).cpu().numpy()
174
 
 
163
  # Watermarking ensures transparency, dissuades misuse, and enables traceability.
164
  # Please be a responsible AI citizen and keep the watermarking in place.
165
  # If using CSM 1B in another application, use your own private key and keep it secret.
166
+ # audio_tensor, wm_sample_rate = watermark(
167
+ # generator._watermarker, audio_tensor, generator.sample_rate, CSM_1B_HF_WATERMARK
168
+ # )
169
+ #audio_tensor = torchaudio.functional.resample(
170
+ # audio_tensor, orig_freq=wm_sample_rate, new_freq=generator.sample_rate
171
+ #)
172
 
173
  audio_array = (audio_tensor * 32768).to(torch.int16).cpu().numpy()
174