Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,8 @@ def run_inference(message, history):
|
|
62 |
final_msg.append(UserMessage(content =tmmp ) )
|
63 |
else:
|
64 |
final_msg.append(AssistantMessage(content = x['content'][0]['text'] ))
|
65 |
-
|
|
|
66 |
completion_request = ChatCompletionRequest(messages=final_msg)
|
67 |
|
68 |
encoded = tokenizer.encode_chat_completion(completion_request)
|
|
|
62 |
final_msg.append(UserMessage(content =tmmp ) )
|
63 |
else:
|
64 |
final_msg.append(AssistantMessage(content = x['content'][0]['text'] ))
|
65 |
+
|
66 |
+
print('final msg ', final_msg)
|
67 |
completion_request = ChatCompletionRequest(messages=final_msg)
|
68 |
|
69 |
encoded = tokenizer.encode_chat_completion(completion_request)
|