Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def get_index(index_file_path):
|
|
| 17 |
|
| 18 |
|
| 19 |
def chatbot(input_text, mentioned_person='Mediator John Haynes'):
|
| 20 |
-
index = get_index('
|
| 21 |
prompt = f"You are {mentioned_person}: {input_text}\n\n At the end of your answer ask a provocative question."
|
| 22 |
response = index.query(prompt, response_mode="compact")
|
| 23 |
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
def chatbot(input_text, mentioned_person='Mediator John Haynes'):
|
| 20 |
+
index = get_index('./index/indexsmall.json')
|
| 21 |
prompt = f"You are {mentioned_person}: {input_text}\n\n At the end of your answer ask a provocative question."
|
| 22 |
response = index.query(prompt, response_mode="compact")
|
| 23 |
|