peterpull commited on
Commit
6f17570
·
1 Parent(s): 66bddd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -61,8 +61,9 @@ def get_index(index_file_path):
61
  print_header_json_file(index_file_path)
62
  index_size = os.path.getsize(index_file_path)
63
  print(f"Size of {index_file_path}: {index_size} bytes") #let me know how big json file is.
64
- #debug - this is where an error is occuring
65
- return GPTSimpleVectorIndex.load_from_disk(index_file_path)
 
66
  else:
67
  print(f"Error: '{index_file_path}' does not exist.")
68
  sys.exit()
 
61
  print_header_json_file(index_file_path)
62
  index_size = os.path.getsize(index_file_path)
63
  print(f"Size of {index_file_path}: {index_size} bytes") #let me know how big json file is.
64
+ #debug - this is where an error is occuring loading the index file. It rejects everythign I give it.
65
+ loaded_index = GPTSimpleVectorIndex.load_from_disk(index_file_path)
66
+ return loaded_index
67
  else:
68
  print(f"Error: '{index_file_path}' does not exist.")
69
  sys.exit()