Spaces:
Sleeping
Sleeping
Commit ·
7beeafa
1
Parent(s): 65d21ff
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ with gr.Blocks() as demo:
|
|
| 57 |
|
| 58 |
|
| 59 |
# Takes in the input from the user to deliver responses
|
| 60 |
-
index = GPTSimpleVectorIndex.load_from_disk('
|
| 61 |
message = ' '.join([message['content'] for message in messages_history])
|
| 62 |
response = index.query(message, response_mode="compact", text_qa_template = QA_PROMPT)
|
| 63 |
return response.response, messages_history
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
# Takes in the input from the user to deliver responses
|
| 60 |
+
index = GPTSimpleVectorIndex.load_from_disk('index_demo.json')
|
| 61 |
message = ' '.join([message['content'] for message in messages_history])
|
| 62 |
response = index.query(message, response_mode="compact", text_qa_template = QA_PROMPT)
|
| 63 |
return response.response, messages_history
|