Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,8 @@
|
|
| 1 |
import json
|
| 2 |
import streamlit as st
|
| 3 |
-
from gpt_index import
|
| 4 |
|
| 5 |
-
|
| 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')
|