Spaces:
Build error
Build error
Commit
9a24553
• 1
Parent(s):
4aff4d5
fix: remove response dump
Browse files- backend/util.py +0 -4
backend/util.py
CHANGED
@@ -57,10 +57,6 @@ def find(modality, query, auth_result, text_encoder, text_image_encoder, silent=
|
|
57 |
authorized_thoughts = sorted(
|
58 |
authorized_thoughts, key=lambda x: x['relatedness'], reverse=True)
|
59 |
|
60 |
-
pickle.dump({
|
61 |
-
'authorized_thoughts': authorized_thoughts,
|
62 |
-
'query_embeddings': query_embeddings
|
63 |
-
}, open('response.pickle', 'wb'))
|
64 |
return {
|
65 |
'authorized_thoughts': authorized_thoughts,
|
66 |
'query_embeddings': query_embeddings
|
57 |
authorized_thoughts = sorted(
|
58 |
authorized_thoughts, key=lambda x: x['relatedness'], reverse=True)
|
59 |
|
|
|
|
|
|
|
|
|
60 |
return {
|
61 |
'authorized_thoughts': authorized_thoughts,
|
62 |
'query_embeddings': query_embeddings
|