Spaces:
Runtime error
Runtime error
fix: hopefully this is the way to get the chat history and prompt
Browse files
app.py
CHANGED
@@ -195,10 +195,9 @@ def vote(data: gr.LikeData):
|
|
195 |
json_data = [
|
196 |
json.dumps(
|
197 |
{
|
198 |
-
"index": data.index,
|
199 |
"time_stamp": time.time(),
|
200 |
-
"prompt": chat_interface.
|
201 |
-
"history": chat_interface.
|
202 |
"system prompt": additional_inputs[0].value,
|
203 |
"temperature": additional_inputs[1].value,
|
204 |
"max_new_tokens": additional_inputs[2].value,
|
|
|
195 |
json_data = [
|
196 |
json.dumps(
|
197 |
{
|
|
|
198 |
"time_stamp": time.time(),
|
199 |
+
"prompt": chat_interface.saved_input.value,
|
200 |
+
"history": chat_interface.textbox.value,
|
201 |
"system prompt": additional_inputs[0].value,
|
202 |
"temperature": additional_inputs[1].value,
|
203 |
"max_new_tokens": additional_inputs[2].value,
|