Spaces:
Paused
Paused
Commit
·
721ab63
1
Parent(s):
92e1851
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def construct_index(directory_path):
|
|
| 29 |
|
| 30 |
def chatbot(input_text):
|
| 31 |
#query_engine = index.as_query_engine()
|
| 32 |
-
index =
|
| 33 |
response = index.query(input_text, response_mode="compact")
|
| 34 |
return response.response
|
| 35 |
|
|
|
|
| 29 |
|
| 30 |
def chatbot(input_text):
|
| 31 |
#query_engine = index.as_query_engine()
|
| 32 |
+
index = GPTVectorStoreIndex.load_from_disk('index.json')
|
| 33 |
response = index.query(input_text, response_mode="compact")
|
| 34 |
return response.response
|
| 35 |
|