Update app.py
Browse files
app.py
CHANGED
|
@@ -86,6 +86,7 @@ def submit_message(prompt, prompt_template, good_foods, bad_foods, temperature,
|
|
| 86 |
})
|
| 87 |
|
| 88 |
total_tokens_used_msg = f"Total tokens used: {state['total_tokens']}"
|
|
|
|
| 89 |
chat_messages = [(history[i].content, history[i+1].content) for i in range(0, len(history)-1, 2)]
|
| 90 |
|
| 91 |
return '', chat_messages, total_tokens_used_msg, state, table
|
|
|
|
| 86 |
})
|
| 87 |
|
| 88 |
total_tokens_used_msg = f"Total tokens used: {state['total_tokens']}"
|
| 89 |
+
print(history)
|
| 90 |
chat_messages = [(history[i].content, history[i+1].content) for i in range(0, len(history)-1, 2)]
|
| 91 |
|
| 92 |
return '', chat_messages, total_tokens_used_msg, state, table
|