Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 168 |
-
)
|
| 169 |
-
audio_tensor = torchaudio.functional.resample(
|
| 170 |
-
|
| 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 |
|