Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -227,7 +227,7 @@ objection_embeddings = np.array(objection_embeddings, dtype="float32")
|
|
227 |
print(f"Shape of objection_embeddings: {objection_embeddings.shape}")
|
228 |
|
229 |
# Assuming you know the expected dimension of the embeddings (e.g., 768)
|
230 |
-
expected_dim =
|
231 |
if len(objection_embeddings.shape) == 1:
|
232 |
objection_embeddings = objection_embeddings.reshape(-1, 1)
|
233 |
|
|
|
227 |
print(f"Shape of objection_embeddings: {objection_embeddings.shape}")
|
228 |
|
229 |
# Assuming you know the expected dimension of the embeddings (e.g., 768)
|
230 |
+
expected_dim = 384 # Example value for sentence embeddings (replace with the actual dimension)
|
231 |
if len(objection_embeddings.shape) == 1:
|
232 |
objection_embeddings = objection_embeddings.reshape(-1, 1)
|
233 |
|