Mattdoc99 commited on
Commit
58cf597
·
1 Parent(s): 277aa17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -1,12 +1,8 @@
1
  import json
2
  import streamlit as st
3
- from gpt_index import GPTSimpleVectorIndex
4
 
5
- def search_gpt_index():
6
- # Load the GPT index from the file
7
- with open('index-4.json', 'r') as f:
8
- index_data = json.load(f)
9
- gpt_index = GPTSimpleVectorIndex(index_data)
10
 
11
  # Define the app layout
12
  st.title('GPT Search')
 
1
  import json
2
  import streamlit as st
3
+ from gpt_index import GPTListIndex
4
 
5
+ search_gpt_index = GPTListInex.load_from_disk('index-4.json')
 
 
 
 
6
 
7
  # Define the app layout
8
  st.title('GPT Search')