Removed claudette
Browse files
main.py
CHANGED
@@ -54,10 +54,9 @@ def index():
|
|
54 |
def send(msg:str, messages:list[str]=None):
|
55 |
if not messages: messages = []
|
56 |
messages.append(msg.rstrip())
|
57 |
-
r =
|
58 |
return (ChatMessage(msg, True), # The user's message
|
59 |
ChatMessage(r.rstrip(), False), # The chatbot's response
|
60 |
ChatInput()) # And clear the input field via an OOB swap
|
61 |
|
62 |
serve()
|
63 |
-
|
|
|
54 |
def send(msg:str, messages:list[str]=None):
|
55 |
if not messages: messages = []
|
56 |
messages.append(msg.rstrip())
|
57 |
+
r = get_completion_from_messages(messages) # get response from chat model
|
58 |
return (ChatMessage(msg, True), # The user's message
|
59 |
ChatMessage(r.rstrip(), False), # The chatbot's response
|
60 |
ChatInput()) # And clear the input field via an OOB swap
|
61 |
|
62 |
serve()
|
|