Update app.py
Browse files
app.py
CHANGED
@@ -125,17 +125,16 @@ def query_model(question):
|
|
125 |
return response
|
126 |
|
127 |
# Define the welcome message and specific topics the chatbot can provide information about
|
128 |
-
welcome_message = ""
|
129 |
# Welcome to AI-nstein!
|
130 |
|
131 |
-
## Your AI-driven assistant for all artificial intelligence-related queries.
|
132 |
"""
|
133 |
|
134 |
topics = """
|
135 |
-
### Feel
|
136 |
- AI Usage
|
137 |
- AI Safety
|
138 |
-
- AI Helpers
|
139 |
- How AI Works
|
140 |
- Basics of AI
|
141 |
- Fun Facts about AI
|
@@ -164,7 +163,7 @@ theme = gr.themes.Monochrome(
|
|
164 |
|
165 |
# Setup the Gradio Blocks interface with custom layout components
|
166 |
with gr.Blocks(theme=theme) as demo:
|
167 |
-
gr.Image("ally.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image")
|
168 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
169 |
with gr.Row():
|
170 |
with gr.Column():
|
|
|
125 |
return response
|
126 |
|
127 |
# Define the welcome message and specific topics the chatbot can provide information about
|
128 |
+
welcome_message = "Greetings! I am AI-nstein, a bot that talks about all things AI!"
|
129 |
# Welcome to AI-nstein!
|
130 |
|
131 |
+
## Your AI-driven assistant for all artificial intelligence-related queries. \nCreated by Sophie Cheng, Ariel Datikash, and K Barnes of the 2024 Kode With Klossy CITY Camp.
|
132 |
"""
|
133 |
|
134 |
topics = """
|
135 |
+
### Feel free to ask me anything from the topics below! \nI give you a fun chatbot and an Einstein fact with every answer.
|
136 |
- AI Usage
|
137 |
- AI Safety
|
|
|
138 |
- How AI Works
|
139 |
- Basics of AI
|
140 |
- Fun Facts about AI
|
|
|
163 |
|
164 |
# Setup the Gradio Blocks interface with custom layout components
|
165 |
with gr.Blocks(theme=theme) as demo:
|
166 |
+
gr.Image("ally.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
|
167 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
168 |
with gr.Row():
|
169 |
with gr.Column():
|