Created
April 28, 2023 18:43
-
-
Save sunilkumardash9/907b6eb4203552e51837ae828af12b59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_text(history, text): | |
global messages #message[list] is defined globally | |
history = history + [(text,'')] | |
messages = messages + [{"role":'user', 'content': text}] | |
return history, "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment