tykiww commited on
Commit
ccc3d18
1 Parent(s): 46920c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def retrieve_answer(question, goals, session_key):
44
  def namespace_check(arg):
45
  pc = pc_connector._connection()
46
  index = pc.Index(conf["embeddings"]["index_name"])
47
- stats = index.DescribeIndexStats()
48
  name_list = stats['namespaces'].keys()
49
  arg in name_list
50
  return arg in name_list
 
44
  def namespace_check(arg):
45
  pc = pc_connector._connection()
46
  index = pc.Index(conf["embeddings"]["index_name"])
47
+ stats = index.describe_index_stats()
48
  name_list = stats['namespaces'].keys()
49
  arg in name_list
50
  return arg in name_list