Spaces:
Running
Running
Alexis Roldan commited on
Commit ·
47d626a
1
Parent(s): b859f61
Chatbot Update 22Mar23
Browse files7 unmodified lines8910111112131417 unmodified lines32333435353637387 unmodified lines
# Initialize message history arraymessage_history = []initial_message = "Please write here your prompt and press 'enter'"initial_message = "Please write your prompt here and press 'enter'"
# Create function to process prompt and append previous prompts as "context"def predict_prompt(input):17 unmodified lines# Create UI using gradiowith gr.Blocks(theme='abidlabs/dracula_test') as chatblock:
gr.Markdown("<h1><center>Welcome to Alexis' Personal AI Assistant (powered by OpenAI API)</center></h1>") gr.Markdown("<h1><center>Welcome to my personal AI assistant (powered by OpenAI)</center></h1>")
Chatbot = gr.Chatbot() with gr.Row():app.py+2-2