Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
| 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()
|