Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,6 +62,7 @@ def get_index(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:
|
|
|
|
| 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 |
+
print("Llama index version:", llama_index.__version__)
|
| 66 |
loaded_index = GPTSimpleVectorIndex.load_from_disk(index_file_path)
|
| 67 |
return loaded_index
|
| 68 |
else:
|