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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -177,7 +177,7 @@ 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
- # Define custom CSS for background and button colors
181
  css_style = """
182
  body {
183
  background-color: #FFC0CB; /* Baby Pink Background */
@@ -190,13 +190,12 @@ body {
190
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
191
  }
192
 
193
- .gr-button, .gr-audio {
194
- background-color: #4CAF50 !important; /* Green color for buttons and audio */
195
  color: white !important;
196
  border: none;
197
  padding: 10px 20px;
198
  text-align: center;
199
- text-decoration: none;
200
  display: inline-block;
201
  font-size: 16px;
202
  margin: 4px 2px;
@@ -204,9 +203,14 @@ body {
204
  border-radius: 5px;
205
  }
206
 
207
- .gr-button:hover, .gr-audio:hover {
208
  background-color: #45a049 !important;
209
  }
 
 
 
 
 
210
  """
211
 
212
  # Creating Gradio app with tabs and custom CSS
 
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 */
 
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;
 
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
 
216
  # Creating Gradio app with tabs and custom CSS