sebastiansarasti commited on
Commit
092c828
·
verified ·
1 Parent(s): d37300f

Update search.py

Browse files
Files changed (1) hide show
  1. search.py +2 -2
search.py CHANGED
@@ -66,7 +66,7 @@ def search_similarity(input, mode, top_k=5):
66
  if mode == 'text':
67
  mode_search = 'image'
68
  response = index.query(
69
- namespace="space-" + mode_search + "-fashion",
70
  vector=output,
71
  top_k=top_k,
72
  include_values=True,
@@ -77,7 +77,7 @@ def search_similarity(input, mode, top_k=5):
77
  elif mode == 'image':
78
  mode_search = 'text'
79
  response = index.query(
80
- namespace="space-" + mode_search + "-fashion",
81
  vector=output,
82
  top_k=top_k,
83
  include_values=True,
 
66
  if mode == 'text':
67
  mode_search = 'image'
68
  response = index.query(
69
+ namespace="space-" + mode_search + "-fashion2",
70
  vector=output,
71
  top_k=top_k,
72
  include_values=True,
 
77
  elif mode == 'image':
78
  mode_search = 'text'
79
  response = index.query(
80
+ namespace="space-" + mode_search + "-fashion2",
81
  vector=output,
82
  top_k=top_k,
83
  include_values=True,