aasiavakil commited on
Commit
99277d9
·
verified ·
1 Parent(s): 0c8efd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -154,20 +154,20 @@ def chatbot(message, history):
154
 
155
  return response
156
 
157
- about_text = """
158
- ## Use this chatbot to help you find affordable healthcare and figure out what medical subsidies you are eligible for!
159
- """
160
- title = """
161
- #HealthPal.io
162
- """
163
- with gr.Blocks() as chatbot:
164
- with gr.Row(scale=1):
165
- gr.Image("heading.png")
166
- with gr.Row(scale=2):
167
- with gr.Column(scale=1):
168
- gr.Markdown(title)
169
- gr.Image("logo.png")
170
- gr.Markdown(about_text)
171
- with gr.Column(scale=2):
172
- gr.ChatInterface()
173
- chatbot.launch()
 
154
 
155
  return response
156
 
157
+ gr.ChatInterface(
158
+ fn=chatbot,
159
+ title="HealthPal.io",
160
+ description="Use this chatbot to help you find affordable healthcare and figure out what medical subsidies you are eligible for!",
161
+ theme="default",
162
+ ).launch()
163
+
164
+ with gr.Blocks() as demo:
165
+ gr.Image("heading.png", show_label=False)
166
+ gr.Image("logo.png", show_label=False)
167
+ gr.ChatInterface(
168
+ fn=chatbot,
169
+ title="HealthPal.io",
170
+ description="Use this chatbot to help you find affordable healthcare and figure out what medical subsidies you are eligible for!",
171
+ )
172
+
173
+ demo.launch()