Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -177,39 +177,48 @@ def process_text_input(plant_name=None, language='english'):
|
|
177 |
|
178 |
return plant_name, care_instructions, audio_file
|
179 |
# Creating Gradio app with tabs
|
|
|
180 |
|
181 |
-
|
182 |
-
body {
|
183 |
-
background-color: #FFC0CB; /* Baby Pink Background */
|
184 |
-
}
|
185 |
-
|
186 |
.gradio-container {
|
187 |
-
|
188 |
-
|
189 |
-
background-
|
190 |
-
|
|
|
|
|
191 |
}
|
192 |
-
|
193 |
-
.gr-button {
|
194 |
-
background-color: #4CAF50 !important; /* Green color for buttons */
|
195 |
color: white !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
border: none;
|
197 |
-
|
198 |
-
text-align: center;
|
199 |
-
display: inline-block;
|
200 |
-
font-size: 16px;
|
201 |
-
margin: 4px 2px;
|
202 |
-
cursor: pointer;
|
203 |
-
border-radius: 5px;
|
204 |
}
|
205 |
-
|
206 |
-
|
207 |
-
background-color: #45a049 !important;
|
208 |
}
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
|
|
|
|
|
|
|
|
|
|
213 |
}
|
214 |
"""
|
215 |
|
|
|
177 |
|
178 |
return plant_name, care_instructions, audio_file
|
179 |
# Creating Gradio app with tabs
|
180 |
+
# Custom CSS for Styling the Gradio
|
181 |
|
182 |
+
custom_css = """
|
|
|
|
|
|
|
|
|
183 |
.gradio-container {
|
184 |
+
background-image: url('https://images.squarespace-cdn.com/content/v1/587ee1eab3db2b428f68d221/1626734192415-LI75A3LVVFMJD5TVZ3HR/Gallery+2.jpg');
|
185 |
+
background-size: cover;
|
186 |
+
background-position: center;
|
187 |
+
background-repeat: no-repeat;
|
188 |
+
color: #333333;
|
189 |
+
font-family: 'Arial', sans-serif;
|
190 |
}
|
191 |
+
h1, #title, #description {
|
|
|
|
|
192 |
color: white !important;
|
193 |
+
}
|
194 |
+
#upload-text, #description-search-text {
|
195 |
+
color: white !important;
|
196 |
+
}
|
197 |
+
label, .gr-label {
|
198 |
+
color: #333333 !important;
|
199 |
+
}
|
200 |
+
button.primary {
|
201 |
+
background-color: #6A5ACD;
|
202 |
+
color: black;
|
203 |
+
border-radius: 10px;
|
204 |
+
padding: 10px;
|
205 |
+
margin: 5px;
|
206 |
+
font-size: 18px;
|
207 |
border: none;
|
208 |
+
transition: background-color 0.3s;
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
}
|
210 |
+
button.primary:hover {
|
211 |
+
background-color: #836FFF;
|
|
|
212 |
}
|
213 |
+
#image_output, #search_image_output {
|
214 |
+
border: 3px solid white;
|
215 |
+
border-radius: 10px;
|
216 |
+
}
|
217 |
+
/* Specifically targeting the example buttons */
|
218 |
+
.gr-examples button {
|
219 |
+
color: white !important;
|
220 |
+
background-color: transparent !important; /* Make the background blend in with the overall theme */
|
221 |
+
border: 1px solid white; /* Add a border if you want to highlight it */
|
222 |
}
|
223 |
"""
|
224 |
|