riyamalshe commited on
Commit
8d1c37c
·
verified ·
1 Parent(s): 2e9dfe9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -156,15 +156,7 @@ def respond(message, history, mom_type) :
156
  # NN commented out
157
  # chatbot = gr.ChatInterface(respond, type="messages")
158
 
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],
166
- title="StudyMama",
167
- custom_theme = [gr.themes.Soft,
168
  primary_hue="purple",
169
  secondary_hue="fuchsia",
170
  neutral_hue="gray",
@@ -172,8 +164,14 @@ with gr.Blocks() as chatbot:
172
  radius_size="lg",
173
  text_size="lg",
174
  font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
175
- font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"]]
176
-
 
 
 
 
 
 
177
  chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
178
  )
179
 
 
156
  # NN commented out
157
  # chatbot = gr.ChatInterface(respond, type="messages")
158
 
159
+ with gr.Blocks(theme = gr.themes.Soft,
 
 
 
 
 
 
 
 
160
  primary_hue="purple",
161
  secondary_hue="fuchsia",
162
  neutral_hue="gray",
 
164
  radius_size="lg",
165
  text_size="lg",
166
  font=[gr.themes.GoogleFont("IBM Plex Sans"), "sans-serif"],
167
+ font_mono=[gr.themes.GoogleFont("IBM Plex Mono"), "monospace"] ) as chatbot:
168
+ with gr.Row():
169
+ mom_type = gr.CheckboxGroup(["Cool Mom", "Tutor Mom", "Strict Mom"],label = "Choose Your Mom")
170
+
171
+ gr.ChatInterface(
172
+ fn=respond,
173
+ additional_inputs=[mom_type],
174
+ title="StudyMama",
175
  chatbot = gr.ChatInterface(respond, type="messages", theme=custom_theme)
176
  )
177