Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,8 @@ def add_file(history, file):
|
|
43 |
|
44 |
def initialize_chat():
|
45 |
# This function initializes the chat with a "Hello" message.
|
46 |
-
return [(None, "Hello my name is Andrea I'm a
|
|
|
47 |
|
48 |
def generate_response(selected_question):
|
49 |
prompt = selected_question # Ensure selected_question is a string
|
@@ -67,6 +68,7 @@ with gr.Blocks() as demo:
|
|
67 |
initialize_chat(),
|
68 |
elem_id="chatbot",
|
69 |
bubble_full_width=False,
|
|
|
70 |
avatar_images=(None, os.path.join(os.getcwd(), "avatar.png"))
|
71 |
)
|
72 |
|
|
|
43 |
|
44 |
def initialize_chat():
|
45 |
# This function initializes the chat with a "Hello" message.
|
46 |
+
return [(None, "Hello, my name is <strong>Andrea</strong>, I'm a <em>Friendly Chatbot</em> and will help you with your learning journey. <br>Select a question from below to start!")]
|
47 |
+
|
48 |
|
49 |
def generate_response(selected_question):
|
50 |
prompt = selected_question # Ensure selected_question is a string
|
|
|
68 |
initialize_chat(),
|
69 |
elem_id="chatbot",
|
70 |
bubble_full_width=False,
|
71 |
+
label= "Safe Chatbot v1"
|
72 |
avatar_images=(None, os.path.join(os.getcwd(), "avatar.png"))
|
73 |
)
|
74 |
|