Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,8 +137,8 @@ def bot(history, cross_encoder):
|
|
| 137 |
history[-1][1] = ""
|
| 138 |
for character in generate_fn(prompt, history[:-1]):
|
| 139 |
history[-1][1] = character
|
| 140 |
-
print('Final history is ',history)
|
| 141 |
yield history, prompt_html
|
|
|
|
| 142 |
#store_message(db,history[-1][0],history[-1][1],cross_encoder)
|
| 143 |
else:
|
| 144 |
# Retrieve documents relevant to query
|
|
@@ -179,9 +179,9 @@ def bot(history, cross_encoder):
|
|
| 179 |
|
| 180 |
history[-1][1] = ""
|
| 181 |
for character in generate_fn(prompt, history[:-1]):
|
| 182 |
-
history[-1][1] = character
|
| 183 |
-
print('Final history is ',history)
|
| 184 |
yield history, prompt_html
|
|
|
|
| 185 |
#store_message(db,history[-1][0],history[-1][1],cross_encoder)
|
| 186 |
|
| 187 |
def system_instructions(question_difficulty, topic,documents_str):
|
|
|
|
| 137 |
history[-1][1] = ""
|
| 138 |
for character in generate_fn(prompt, history[:-1]):
|
| 139 |
history[-1][1] = character
|
|
|
|
| 140 |
yield history, prompt_html
|
| 141 |
+
print('Final history is ',history)
|
| 142 |
#store_message(db,history[-1][0],history[-1][1],cross_encoder)
|
| 143 |
else:
|
| 144 |
# Retrieve documents relevant to query
|
|
|
|
| 179 |
|
| 180 |
history[-1][1] = ""
|
| 181 |
for character in generate_fn(prompt, history[:-1]):
|
| 182 |
+
history[-1][1] = character
|
|
|
|
| 183 |
yield history, prompt_html
|
| 184 |
+
print('Final history is ',history)
|
| 185 |
#store_message(db,history[-1][0],history[-1][1],cross_encoder)
|
| 186 |
|
| 187 |
def system_instructions(question_difficulty, topic,documents_str):
|