Rekham1110 commited on
Commit
d58d4db
·
verified ·
1 Parent(s): ac286e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -29
app.py CHANGED
@@ -193,73 +193,73 @@ def process_image(images, project_name, project_type):
193
  except Exception as e:
194
  return f"<p style='color: red;'>Error: {str(e)}</p>", "Failure", "", "", "0%"
195
 
196
- # Gradio UI with enhanced styling
197
  with gr.Blocks(css="""
198
  .gradio-container {
199
- background-color: #e9ecef;
200
- font-family: Helvetica, sans-serif;
201
- padding: 20px;
202
  }
203
  .title {
204
- color: #1a3c5e;
205
- font-size: 28px;
206
  text-align: center;
207
  font-weight: bold;
208
- margin-bottom: 20px;
209
  }
210
  .gradio-row {
211
  text-align: center;
212
- margin-bottom: 15px;
213
  }
214
  .gradio-container .output {
215
- background-color: white;
216
- padding: 15px;
217
- border-radius: 8px;
218
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
219
  text-align: left;
220
- font-size: 16px;
221
  }
222
  .gradio-container .input {
223
  text-align: center;
224
- margin-bottom: 10px;
225
  }
226
  .gradio-container .button {
227
  display: block;
228
  margin: 0 auto;
229
- background: linear-gradient(to right, #2c6eb5, #1a3c5e);
230
  color: white;
231
  border: none;
232
- padding: 12px 25px;
233
- border-radius: 8px;
234
  cursor: pointer;
235
- font-size: 16px;
236
  transition: background 0.3s;
237
  }
238
  .gradio-container .button:hover {
239
- background: linear-gradient(to right, #1a3c5e, #2c6eb5);
240
  }
241
  progress::-webkit-progress-value {
242
- background-color: #27ae60;
243
- border-radius: 5px;
244
  }
245
  progress::-webkit-progress-bar {
246
- background-color: #dfe6e9;
247
- border-radius: 5px;
248
  }
249
  details summary {
250
  cursor: pointer;
251
- padding: 10px;
252
- background-color: #dfe6e9;
253
- border-radius: 5px;
254
  font-weight: bold;
255
  margin-bottom: 5px;
256
  }
257
  details ul {
258
- margin-top: 10px;
259
- padding-left: 20px;
260
  }
261
  .output strong {
262
- color: #1a3c5e;
263
  font-weight: bold;
264
  }
265
  """) as demo:
 
193
  except Exception as e:
194
  return f"<p style='color: red;'>Error: {str(e)}</p>", "Failure", "", "", "0%"
195
 
196
+ # Gradio UI with updated styling
197
  with gr.Blocks(css="""
198
  .gradio-container {
199
+ background-color: #f5f7fa;
200
+ font-family: Arial, sans-serif;
201
+ padding: 15px;
202
  }
203
  .title {
204
+ color: #2e86ab;
205
+ font-size: 26px;
206
  text-align: center;
207
  font-weight: bold;
208
+ margin-bottom: 15px;
209
  }
210
  .gradio-row {
211
  text-align: center;
212
+ margin-bottom: 10px;
213
  }
214
  .gradio-container .output {
215
+ background-color: #ffffff;
216
+ padding: 10px;
217
+ border-radius: 6px;
218
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
219
  text-align: left;
220
+ font-size: 15px;
221
  }
222
  .gradio-container .input {
223
  text-align: center;
224
+ margin-bottom: 8px;
225
  }
226
  .gradio-container .button {
227
  display: block;
228
  margin: 0 auto;
229
+ background: linear-gradient(to right, #4a90e2, #2e86ab);
230
  color: white;
231
  border: none;
232
+ padding: 10px 20px;
233
+ border-radius: 6px;
234
  cursor: pointer;
235
+ font-size: 15px;
236
  transition: background 0.3s;
237
  }
238
  .gradio-container .button:hover {
239
+ background: #2e86ab;
240
  }
241
  progress::-webkit-progress-value {
242
+ background-color: #e74c3c;
243
+ border-radius: 4px;
244
  }
245
  progress::-webkit-progress-bar {
246
+ background-color: #ecf0f1;
247
+ border-radius: 4px;
248
  }
249
  details summary {
250
  cursor: pointer;
251
+ padding: 8px;
252
+ background-color: #ecf0f1;
253
+ border-radius: 4px;
254
  font-weight: bold;
255
  margin-bottom: 5px;
256
  }
257
  details ul {
258
+ margin-top: 8px;
259
+ padding-left: 18px;
260
  }
261
  .output strong {
262
+ color: #2e86ab;
263
  font-weight: bold;
264
  }
265
  """) as demo: