Rekham1110 commited on
Commit
9e4f33a
·
verified ·
1 Parent(s): 230afa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -35
app.py CHANGED
@@ -196,18 +196,19 @@ def process_image(images, project_name, project_type):
196
  except Exception as e:
197
  return f"<p style='color: red;'>Error: {str(e)}</p>", "Failure", "", "", "0%"
198
 
199
- # Gradio UI with enhanced styling
200
  with gr.Blocks(css="""
201
  .gradio-container {
202
- background-color: #f0f4f8;
203
- font-family: Arial, sans-serif;
204
  }
205
  .title {
206
- color: #2c3e50;
207
- font-size: 24px;
208
  text-align: center;
209
  font-weight: bold;
210
- margin-bottom: 20px;
 
211
  }
212
  .gradio-row {
213
  text-align: center;
@@ -215,30 +216,30 @@ with gr.Blocks(css="""
215
  .gradio-container .output {
216
  text-align: left;
217
  margin-top: 20px;
218
- padding: 20px;
219
  background-color: #ffffff;
220
- border-radius: 8px;
221
- box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
222
  max-width: 800px;
223
  margin-left: auto;
224
  margin-right: auto;
225
  }
226
  .gradio-container .output h3 {
227
  color: #2c3e50;
228
- font-size: 20px;
229
  font-weight: bold;
230
- margin-bottom: 15px;
231
  }
232
  .gradio-container .output ul {
233
  list-style-type: none;
234
  padding: 0;
235
  }
236
  .gradio-container .output li {
237
- padding: 10px;
238
- margin-bottom: 10px;
239
- background-color: #ecf0f1;
240
- border-radius: 5px;
241
- font-size: 14px;
242
  }
243
  .gradio-container .output li.success {
244
  background-color: #2ecc71;
@@ -254,9 +255,11 @@ with gr.Blocks(css="""
254
  background-color: #3498db;
255
  color: white;
256
  border: none;
257
- padding: 12px 24px;
258
- border-radius: 5px;
259
  cursor: pointer;
 
 
260
  }
261
  .gradio-container .button:hover {
262
  background-color: #2980b9;
@@ -264,23 +267,6 @@ with gr.Blocks(css="""
264
  .gradio-container .input {
265
  text-align: center;
266
  }
267
- progress::-webkit-progress-value {
268
- background-color: #2ecc71;
269
- border-radius: 5px;
270
- }
271
- progress::-webkit-progress-bar {
272
- background-color: #ecf0f1;
273
- border-radius: 5px;
274
- }
275
- details summary {
276
- cursor: pointer;
277
- padding: 12px;
278
- background-color: #ecf0f1;
279
- border-radius: 5px;
280
- }
281
- details ul {
282
- margin-top: 10px;
283
- }
284
  """) as demo:
285
  gr.Markdown("<h1 class='title'>Construction Progress Analyzer</h1>")
286
 
 
196
  except Exception as e:
197
  return f"<p style='color: red;'>Error: {str(e)}</p>", "Failure", "", "", "0%"
198
 
199
+ # Gradio UI with new updated styling
200
  with gr.Blocks(css="""
201
  .gradio-container {
202
+ background-color: #e7f4f9;
203
+ font-family: 'Roboto', sans-serif;
204
  }
205
  .title {
206
+ color: #34495e;
207
+ font-size: 30px;
208
  text-align: center;
209
  font-weight: bold;
210
+ margin-bottom: 25px;
211
+ text-transform: uppercase;
212
  }
213
  .gradio-row {
214
  text-align: center;
 
216
  .gradio-container .output {
217
  text-align: left;
218
  margin-top: 20px;
219
+ padding: 25px;
220
  background-color: #ffffff;
221
+ border-radius: 10px;
222
+ box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
223
  max-width: 800px;
224
  margin-left: auto;
225
  margin-right: auto;
226
  }
227
  .gradio-container .output h3 {
228
  color: #2c3e50;
229
+ font-size: 22px;
230
  font-weight: bold;
231
+ margin-bottom: 20px;
232
  }
233
  .gradio-container .output ul {
234
  list-style-type: none;
235
  padding: 0;
236
  }
237
  .gradio-container .output li {
238
+ padding: 12px;
239
+ margin-bottom: 15px;
240
+ border-radius: 8px;
241
+ font-size: 16px;
242
+ transition: background-color 0.3s ease;
243
  }
244
  .gradio-container .output li.success {
245
  background-color: #2ecc71;
 
255
  background-color: #3498db;
256
  color: white;
257
  border: none;
258
+ padding: 15px 30px;
259
+ border-radius: 10px;
260
  cursor: pointer;
261
+ font-size: 18px;
262
+ transition: background-color 0.3s ease;
263
  }
264
  .gradio-container .button:hover {
265
  background-color: #2980b9;
 
267
  .gradio-container .input {
268
  text-align: center;
269
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
  """) as demo:
271
  gr.Markdown("<h1 class='title'>Construction Progress Analyzer</h1>")
272