Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from
|
| 2 |
import gradio as gr
|
| 3 |
from gradio import Interface, Textbox
|
| 4 |
import sys
|
|
@@ -62,7 +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 |
-
print("
|
| 66 |
loaded_index = GPTSimpleVectorIndex.load_from_disk(index_file_path)
|
| 67 |
return loaded_index
|
| 68 |
else:
|
|
|
|
| 1 |
+
from gpt_index import GPTSimpleVectorIndex
|
| 2 |
import gradio as gr
|
| 3 |
from gradio import Interface, Textbox
|
| 4 |
import sys
|
|
|
|
| 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("GPT_index version:", gpt_index.__version__)
|
| 66 |
loaded_index = GPTSimpleVectorIndex.load_from_disk(index_file_path)
|
| 67 |
return loaded_index
|
| 68 |
else:
|