zinoubm commited on
Commit
fa9bc9f
1 Parent(s): 557abb1

new solution

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,9 +25,9 @@ def generate(keywords):
25
  keywords_list = []
26
  gr.Warning("Please use ',' to separate Keywords")
27
 
28
- embedding = openai_manager.get_embeddings(keywords_list)
29
 
30
- points = qdrant_manager.search_point(query_vector=embedding[0])
31
 
32
  return openai_manager.shots(points, " ".join(keywords_list))
33
 
 
25
  keywords_list = []
26
  gr.Warning("Please use ',' to separate Keywords")
27
 
28
+ embedding = openai_manager.get_embedding(" ".join(keywords_list))
29
 
30
+ points = qdrant_manager.search_point(query_vector=embedding)
31
 
32
  return openai_manager.shots(points, " ".join(keywords_list))
33