Spaces:
Runtime error
Runtime error
Update audioldm/clap/encoders.py
Browse files
audioldm/clap/encoders.py
CHANGED
@@ -163,7 +163,7 @@ class CLAPAudioEmbeddingClassifierFreev2(nn.Module):
|
|
163 |
text,
|
164 |
padding="max_length",
|
165 |
truncation=True,
|
166 |
-
max_length=
|
167 |
return_tensors="pt",
|
168 |
)
|
169 |
return {k: v.squeeze(0) for k, v in result.items()}
|
|
|
163 |
text,
|
164 |
padding="max_length",
|
165 |
truncation=True,
|
166 |
+
max_length=512,
|
167 |
return_tensors="pt",
|
168 |
)
|
169 |
return {k: v.squeeze(0) for k, v in result.items()}
|