peterpull commited on
Commit
b5ba5bf
·
1 Parent(s): ad3034b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from llama_index import GPTSimpleVectorIndex
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("Llama index version:", llama_index.__version__)
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: