Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,36 +91,28 @@ def respond(message, chat_history):
|
|
| 91 |
# Return the updated chat history and the image paths
|
| 92 |
return chat_history, image_paths
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
/*
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
/* Chatbot message area */
|
| 103 |
-
[data-testid="chatbot"] .message {
|
| 104 |
-
color: white !important;
|
| 105 |
}
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
[data-testid="gallery"] {
|
| 109 |
background-color: #407076 !important;
|
|
|
|
| 110 |
}
|
| 111 |
-
|
| 112 |
/* Gallery images */
|
| 113 |
-
|
| 114 |
-
border: 3px solid #D3AF37
|
| 115 |
-
border-radius: 8px
|
| 116 |
-
}
|
| 117 |
-
|
| 118 |
-
/* Optional: Markdown text color */
|
| 119 |
-
.gr-markdown {
|
| 120 |
-
color: white !important;
|
| 121 |
}
|
|
|
|
| 122 |
|
| 123 |
-
# Gradio UI
|
| 124 |
with gr.Blocks(css=css) as demo:
|
| 125 |
gr.Markdown("# Fashionista - Your Personal Style Assistant")
|
| 126 |
gr.Markdown("Ask me what to wear and I'll suggest clothing with images from the database.")
|
|
|
|
| 91 |
# Return the updated chat history and the image paths
|
| 92 |
return chat_history, image_paths
|
| 93 |
|
| 94 |
+
# --- CSS styling ---
|
| 95 |
+
css = """
|
| 96 |
+
/* Container background */
|
| 97 |
+
.gradio-container { background-color: #EBBAB9; }
|
| 98 |
+
/* Input boxes */
|
| 99 |
+
.gr-input-label, .gr-textbox, .gr-textarea {
|
| 100 |
+
background-color: #698996 !important;
|
| 101 |
+
color: white;
|
|
|
|
|
|
|
|
|
|
| 102 |
}
|
| 103 |
+
/* Panels: Chatbot & Gallery */
|
| 104 |
+
.gr-panel, .gr-chatbot, .gr-gallery {
|
|
|
|
| 105 |
background-color: #407076 !important;
|
| 106 |
+
color: white;
|
| 107 |
}
|
|
|
|
| 108 |
/* Gallery images */
|
| 109 |
+
.gr-gallery-item img {
|
| 110 |
+
border: 3px solid #D3AF37;
|
| 111 |
+
border-radius: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
+
"""
|
| 114 |
|
| 115 |
+
# --- Gradio UI ---
|
| 116 |
with gr.Blocks(css=css) as demo:
|
| 117 |
gr.Markdown("# Fashionista - Your Personal Style Assistant")
|
| 118 |
gr.Markdown("Ask me what to wear and I'll suggest clothing with images from the database.")
|