capradeepgujaran
commited on
Commit
•
f6a3081
1
Parent(s):
07eb181
Update app.py
Browse files
app.py
CHANGED
@@ -129,13 +129,22 @@ def chat_about_image(message, chat_history):
|
|
129 |
return "", chat_history + [(message, f"Error: {str(e)}")]
|
130 |
|
131 |
|
132 |
-
# Custom CSS for improved styling
|
133 |
# Custom CSS for improved styling
|
134 |
custom_css = """
|
135 |
-
.container { max-width:
|
136 |
-
.header { text-align: center; margin-bottom:
|
137 |
.header h1 { color: #2c3e50; font-size: 2.5rem; }
|
138 |
-
.subheader {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
.image-container { border: 2px dashed #3498db; border-radius: 10px; padding: 1rem; text-align: center; }
|
140 |
.analyze-button { background-color: #2ecc71 !important; color: white !important; }
|
141 |
.clear-button { background-color: #e74c3c !important; color: white !important; width: 100px !important; }
|
|
|
129 |
return "", chat_history + [(message, f"Error: {str(e)}")]
|
130 |
|
131 |
|
|
|
132 |
# Custom CSS for improved styling
|
133 |
custom_css = """
|
134 |
+
.container { max-width: 1200px; margin: auto; padding-top: 1.5rem; }
|
135 |
+
.header { text-align: center; margin-bottom: 1rem; }
|
136 |
.header h1 { color: #2c3e50; font-size: 2.5rem; }
|
137 |
+
.subheader {
|
138 |
+
color: #34495e;
|
139 |
+
font-size: 1rem;
|
140 |
+
line-height: 1.2;
|
141 |
+
margin-bottom: 1.5rem;
|
142 |
+
text-align: center;
|
143 |
+
padding: 0 15px;
|
144 |
+
white-space: nowrap;
|
145 |
+
overflow: hidden;
|
146 |
+
text-overflow: ellipsis;
|
147 |
+
}
|
148 |
.image-container { border: 2px dashed #3498db; border-radius: 10px; padding: 1rem; text-align: center; }
|
149 |
.analyze-button { background-color: #2ecc71 !important; color: white !important; }
|
150 |
.clear-button { background-color: #e74c3c !important; color: white !important; width: 100px !important; }
|