AkinyemiAra commited on
Commit
30bbdee
·
verified ·
1 Parent(s): e1286f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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."