Spaces:
Runtime error
Runtime error
Commit
·
a779927
1
Parent(s):
6f08e8f
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,7 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
|
|
| 119 |
})
|
| 120 |
|
| 121 |
total_tokens_used_msg = f"Total tokens used: {state['total_tokens']}"
|
| 122 |
-
chat_messages = [(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)]
|
| 123 |
|
| 124 |
return '', chat_messages, total_tokens_used_msg, state
|
| 125 |
|
|
|
|
| 119 |
})
|
| 120 |
|
| 121 |
total_tokens_used_msg = f"Total tokens used: {state['total_tokens']}"
|
| 122 |
+
chat_messages = str([(history[i]['content'], history[i+1]['content']) for i in range(0, len(history)-1, 2)])
|
| 123 |
|
| 124 |
return '', chat_messages, total_tokens_used_msg, state
|
| 125 |
|