Spaces:
Runtime error
Runtime error
v3.2
Browse files
app.py
CHANGED
@@ -141,6 +141,9 @@ def search(mode, method, image, text):
|
|
141 |
if b:
|
142 |
res.append(img)
|
143 |
idx += 1
|
|
|
|
|
|
|
144 |
return res
|
145 |
|
146 |
if __name__ == "__main__":
|
141 |
if b:
|
142 |
res.append(img)
|
143 |
idx += 1
|
144 |
+
while idx < topK:
|
145 |
+
res.append(np.zeros((255, 255, 3)))
|
146 |
+
idx += 1
|
147 |
return res
|
148 |
|
149 |
if __name__ == "__main__":
|