Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,15 +51,7 @@ def construct_index(directory_path):
|
|
51 |
|
52 |
return index
|
53 |
|
54 |
-
|
55 |
-
index = GPTSimpleVectorIndex.load_from_disk('index.json')
|
56 |
-
while True:
|
57 |
-
query = input("What do you want to ask? ")
|
58 |
-
response = index.query(query, response_mode="compact")
|
59 |
-
display(Markdown(f"Response: <b>{response.response}</b>")
|
60 |
-
|
61 |
-
|
62 |
-
construct_index("context_data/data")
|
63 |
|
64 |
def ask_ai(query):
|
65 |
index = GPTSimpleVectorIndex.load_from_disk('index.json')
|
|
|
51 |
|
52 |
return index
|
53 |
|
54 |
+
#construct_index("context_data/data")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
def ask_ai(query):
|
57 |
index = GPTSimpleVectorIndex.load_from_disk('index.json')
|