riyamalshe commited on
Commit
ed497ee
·
verified ·
1 Parent(s): ce57906

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -159,7 +159,19 @@ def respond(message, history, mom_type) :
159
  with gr.Blocks() as chatbot:
160
  with gr.Row():
161
  mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
162
-
 
 
 
 
 
 
 
 
 
 
 
 
163
  gr.ChatInterface(
164
  fn=respond,
165
  additional_inputs=[mom_type],
 
159
  with gr.Blocks() as chatbot:
160
  with gr.Row():
161
  mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
162
+
163
+ custom_theme = gr.themes.Soft(
164
+ primary_hue="purple",
165
+ secondary_hue="fuchsia",
166
+ neutral_hue="gray",
167
+ spacing_size="lg",
168
+ radius_size="lg",
169
+ text_size="lg",
170
+ font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
171
+ font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]
172
+ )
173
+ chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
174
+
175
  gr.ChatInterface(
176
  fn=respond,
177
  additional_inputs=[mom_type],