Spaces:
Running
Running
Commit
·
f9c7c43
1
Parent(s):
b1ffaa6
Update app.py
Browse files
app.py
CHANGED
@@ -104,6 +104,8 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
|
|
104 |
state.append(completion.copy())
|
105 |
|
106 |
state['total_tokens'] += completion['usage']['total_tokens']
|
|
|
|
|
107 |
|
108 |
except Exception as e:
|
109 |
history.append(prompt_msg.copy())
|
@@ -119,7 +121,7 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
|
|
119 |
|
120 |
|
121 |
|
122 |
-
|
123 |
|
124 |
|
125 |
|
|
|
104 |
state.append(completion.copy())
|
105 |
|
106 |
state['total_tokens'] += completion['usage']['total_tokens']
|
107 |
+
|
108 |
+
return '', chat_messages, total_tokens_used_msg, state
|
109 |
|
110 |
except Exception as e:
|
111 |
history.append(prompt_msg.copy())
|
|
|
121 |
|
122 |
|
123 |
|
124 |
+
|
125 |
|
126 |
|
127 |
|