Spaces:
Sleeping
Sleeping
Alexis Roldan
commited on
Commit
·
47d626a
1
Parent(s):
b859f61
Chatbot Update 22Mar23
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ openai.api_key = os.getenv('OPENAI_KEY')
|
|
8 |
|
9 |
# Initialize message history array
|
10 |
message_history = []
|
11 |
-
initial_message = "Please write
|
12 |
|
13 |
# Create function to process prompt and append previous prompts as "context"
|
14 |
def predict_prompt(input):
|
@@ -32,7 +32,7 @@ def predict_prompt(input):
|
|
32 |
# Create UI using gradio
|
33 |
with gr.Blocks(theme='abidlabs/dracula_test') as chatblock:
|
34 |
|
35 |
-
gr.Markdown("<h1><center>Welcome to
|
36 |
|
37 |
Chatbot = gr.Chatbot()
|
38 |
with gr.Row():
|
|
|
8 |
|
9 |
# Initialize message history array
|
10 |
message_history = []
|
11 |
+
initial_message = "Please write your prompt here and press 'enter'"
|
12 |
|
13 |
# Create function to process prompt and append previous prompts as "context"
|
14 |
def predict_prompt(input):
|
|
|
32 |
# Create UI using gradio
|
33 |
with gr.Blocks(theme='abidlabs/dracula_test') as chatblock:
|
34 |
|
35 |
+
gr.Markdown("<h1><center>Welcome to my personal AI assistant (powered by OpenAI)</center></h1>")
|
36 |
|
37 |
Chatbot = gr.Chatbot()
|
38 |
with gr.Row():
|