tykiww commited on
Commit
0a667af
1 Parent(s): cd19ab7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -58,10 +58,12 @@ def return_stored_transcripts(conf):
58
 
59
 
60
  def namespace_check(arg):
 
61
  pc = pc_connector._connection()
62
  index = pc.Index(conf["embeddings"]["index_name"])
63
  stats = index.describe_index_stats()
64
  name_list = stats['namespaces'].keys()
 
65
  print(arg)
66
  print(name_list)
67
  print(arg in name_list)
 
58
 
59
 
60
  def namespace_check(arg):
61
+ """This piece of code should be moved to the backend QA Service"""
62
  pc = pc_connector._connection()
63
  index = pc.Index(conf["embeddings"]["index_name"])
64
  stats = index.describe_index_stats()
65
  name_list = stats['namespaces'].keys()
66
+ name_list = [item for item in name_list if item != '']
67
  print(arg)
68
  print(name_list)
69
  print(arg in name_list)