Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,11 @@ theme = gr.themes.Ocean(
|
|
| 16 |
background_fill_primary="neutral_200"
|
| 17 |
)
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
# SEMANTIC SEARCH STEP 2
|
|
@@ -131,7 +134,7 @@ def echo(message, history):
|
|
| 131 |
def yes_no(message, history):
|
| 132 |
responses = ["Yes", "No"]
|
| 133 |
return random.choice(responses)
|
| 134 |
-
with gr.Blocks(theme=theme) as chatbot:
|
| 135 |
with gr.Row(scale=1):
|
| 136 |
with gr.Column(scale=4):
|
| 137 |
gr.Image("moody_music_2.png", width=2500, height=300)
|
|
|
|
| 16 |
background_fill_primary="neutral_200"
|
| 17 |
)
|
| 18 |
|
| 19 |
+
gradient_css = """
|
| 20 |
+
body {
|
| 21 |
+
background: linear-gradient(135deg, #F1EECC, #A0E0E0);
|
| 22 |
+
}
|
| 23 |
+
"""
|
| 24 |
|
| 25 |
|
| 26 |
# SEMANTIC SEARCH STEP 2
|
|
|
|
| 134 |
def yes_no(message, history):
|
| 135 |
responses = ["Yes", "No"]
|
| 136 |
return random.choice(responses)
|
| 137 |
+
with gr.Blocks(theme=theme, css=gradient_css) as chatbot:
|
| 138 |
with gr.Row(scale=1):
|
| 139 |
with gr.Column(scale=4):
|
| 140 |
gr.Image("moody_music_2.png", width=2500, height=300)
|