Spaces:
Runtime error
Runtime error
Update app.py
#1
by
hungdang
- opened
app.py
CHANGED
|
@@ -40,6 +40,8 @@ if not os.path.exists(emb_filename):
|
|
| 40 |
with open(emb_path, "rb") as fIn:
|
| 41 |
img_names, img_emb = pickle.load(fIn)
|
| 42 |
|
|
|
|
|
|
|
| 43 |
|
| 44 |
def search_text(query):
|
| 45 |
"""Search an image based on the text query.
|
|
|
|
| 40 |
with open(emb_path, "rb") as fIn:
|
| 41 |
img_names, img_emb = pickle.load(fIn)
|
| 42 |
|
| 43 |
+
print(len(img_names), img_emb[0], img_emb[0].shape)
|
| 44 |
+
|
| 45 |
|
| 46 |
def search_text(query):
|
| 47 |
"""Search an image based on the text query.
|