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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -32
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
  from sentence_transformers import SentenceTransformer, util
3
  import openai
4
  import os
5
- import webbrowser
6
 
7
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
8
 
@@ -140,34 +139,3 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
140
 
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()
 
2
  from sentence_transformers import SentenceTransformer, util
3
  import openai
4
  import os
 
5
 
6
  os.environ["TOKENIZERS_PARALLELISM"] = "false"
7
 
 
139
 
140
  # Launch the Gradio app to allow user interaction
141
  demo.launch(share = True)