Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,9 +19,19 @@ def respond(message, history):
|
|
| 19 |
|
| 20 |
return response["choices"][0]["message"]["content"].strip()
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
title = """# 🐑 NutriAssist 🌱"""
|
| 23 |
|
| 24 |
-
with gr.Blocks() as chatbot:
|
| 25 |
with gr.Row(scale=1):
|
| 26 |
gr.Image(
|
| 27 |
value="NutriAssistBanner.png",
|
|
|
|
| 19 |
|
| 20 |
return response["choices"][0]["message"]["content"].strip()
|
| 21 |
|
| 22 |
+
chat_theme = gr.themes.Monochrome(
|
| 23 |
+
primary_hue = "rose",
|
| 24 |
+
secondary_hue = "rose",
|
| 25 |
+
neutral_hue = "rose").set(
|
| 26 |
+
background_fill_primary = "*primary_50",
|
| 27 |
+
input_background_fill = "*neutral_100",
|
| 28 |
+
input_border_color_focus = "*primary_200",
|
| 29 |
+
button_secondary_background_fill = "*secondary_50",
|
| 30 |
+
button_secondary_background_fill_hover = "*secondary_100")
|
| 31 |
+
|
| 32 |
title = """# 🐑 NutriAssist 🌱"""
|
| 33 |
|
| 34 |
+
with gr.Blocks(theme = chat_theme) as chatbot:
|
| 35 |
with gr.Row(scale=1):
|
| 36 |
gr.Image(
|
| 37 |
value="NutriAssistBanner.png",
|