Spaces:
Running
Running
Commit
·
aa25df8
1
Parent(s):
29adf64
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,8 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
|
|
121 |
|
122 |
history.append(prompt_msg)
|
123 |
#history.append(completion.choices[0].message.to_dict())
|
124 |
-
history.append(completion["result"].choices[0].message.to_dict())
|
|
|
125 |
|
126 |
state['total_tokens'] += completion['usage']['total_tokens']
|
127 |
|
|
|
121 |
|
122 |
history.append(prompt_msg)
|
123 |
#history.append(completion.choices[0].message.to_dict())
|
124 |
+
#history.append(completion["result"].choices[0].message.to_dict())
|
125 |
+
history.append("test")
|
126 |
|
127 |
state['total_tokens'] += completion['usage']['total_tokens']
|
128 |
|