Update app.py
Browse files
app.py
CHANGED
@@ -73,14 +73,17 @@ def chatresponse(message, history):
|
|
73 |
response = output.split('ANSWER: ')[-1].strip()
|
74 |
return response
|
75 |
|
|
|
|
|
76 |
# Launch the Gradio chat interface
|
77 |
gr.ChatInterface(
|
78 |
chatresponse,
|
79 |
textbox = gr.Textbox(placeholder="Type in your message"),
|
80 |
title = "AIoT SMART Labs Assistant",
|
81 |
description = "Ask AIoT SMART Labs Assistant any question about the organization. Note it can make mistakes. Check important info.",
|
82 |
-
examples = ["What is the IoT Summer Program?", "I'm a 9th grader. Am I eligible for the program?"],
|
83 |
theme = "base",
|
|
|
84 |
).launch()
|
85 |
|
86 |
# import gradio as gr
|
|
|
73 |
response = output.split('ANSWER: ')[-1].strip()
|
74 |
return response
|
75 |
|
76 |
+
css_code='body{background-image:url("https://picsum.photos/seed/picsum/200/300");}'
|
77 |
+
|
78 |
# Launch the Gradio chat interface
|
79 |
gr.ChatInterface(
|
80 |
chatresponse,
|
81 |
textbox = gr.Textbox(placeholder="Type in your message"),
|
82 |
title = "AIoT SMART Labs Assistant",
|
83 |
description = "Ask AIoT SMART Labs Assistant any question about the organization. Note it can make mistakes. Check important info.",
|
84 |
+
examples = ["What is the IoT Summer Program?", "I'm a 9th grader. Am I eligible for the program?", "What are the dates for the online & live batches?"],
|
85 |
theme = "base",
|
86 |
+
css = css_code,
|
87 |
).launch()
|
88 |
|
89 |
# import gradio as gr
|