razanalsulami commited on
Commit
b7a5e18
·
verified ·
1 Parent(s): 03cbdec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -26
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
- css_style = """
182
- body {
183
- background-color: #FFC0CB; /* Baby Pink Background */
184
- }
185
-
186
  .gradio-container {
187
- border-radius: 10px;
188
- padding: 20px;
189
- background-color: white;
190
- box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
 
 
191
  }
192
-
193
- .gr-button {
194
- background-color: #4CAF50 !important; /* Green color for buttons */
195
  color: white !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  border: none;
197
- padding: 10px 20px;
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
- .gr-button:hover {
207
- background-color: #45a049 !important;
208
  }
209
-
210
- .gr-audio audio {
211
- background-color: #4CAF50 !important; /* Green color for audio player */
212
- border: 2px solid #45a049 !important;
 
 
 
 
 
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