angela2882 commited on
Commit
c8da9bc
·
verified ·
1 Parent(s): 93ffa13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -5
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
- def display_iframe():
145
- return display_iframe
146
- def display_image():
147
- return
148
- "https://huggingface.co/spaces/AquaGuard/chess-chatbot/resolve/main/IMG_2031.JPG"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()