Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,7 @@ def search_similar(query_img):
|
|
89 |
# Return top 5 results
|
90 |
return [(f"dataset/{name}", f"Score: {score:.4f}") for name, score in filtered_results[:5]]
|
91 |
|
|
|
92 |
def add_image(name: str, image):
|
93 |
if not name.strip():
|
94 |
return "Please provide a valid image name."
|
|
|
89 |
# Return top 5 results
|
90 |
return [(f"dataset/{name}", f"Score: {score:.4f}") for name, score in filtered_results[:5]]
|
91 |
|
92 |
+
@spaces.GPU
|
93 |
def add_image(name: str, image):
|
94 |
if not name.strip():
|
95 |
return "Please provide a valid image name."
|