Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -141,8 +141,33 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
141 |
# Launch the Gradio app to allow user interaction
|
142 |
demo.launch(share = True)
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
# Launch the Gradio app to allow user interaction
|
142 |
demo.launch(share = True)
|
143 |
|
144 |
+
|
145 |
+
iface = gr.Interface(
|
146 |
+
fn=chatbot_response,
|
147 |
+
inputs="text",
|
148 |
+
outputs="text",
|
149 |
+
title="AquaGuard Chatbot",
|
150 |
+
description="""
|
151 |
+
<style>
|
152 |
+
body {
|
153 |
+
background-image: url('https://path-to-your-sea-image.jpg');
|
154 |
+
background-size: cover;
|
155 |
+
color: white;
|
156 |
+
}
|
157 |
+
h1 {
|
158 |
+
font-size: 4em;
|
159 |
+
color: white;
|
160 |
+
text-align: center;
|
161 |
+
margin-top: 0;
|
162 |
+
}
|
163 |
+
p {
|
164 |
+
color: white;
|
165 |
+
text-align: center;
|
166 |
+
}
|
167 |
+
</style>
|
168 |
+
<h1>AquaGuard Chatbot</h1>
|
169 |
+
<p>Chat with AquaGuard to learn about ocean pollution and find volunteer opportunities.</p>
|
170 |
+
""",
|
171 |
+
)
|
172 |
+
|
173 |
+
iface.launch()
|