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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -196,10 +196,10 @@ 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 new updated styling
200
  with gr.Blocks(css="""
201
  .gradio-container {
202
- background-color: #e7f4f9;
203
  font-family: 'Roboto', sans-serif;
204
  }
205
  .title {
@@ -216,10 +216,10 @@ with gr.Blocks(css="""
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;
@@ -235,14 +235,14 @@ with gr.Blocks(css="""
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;
246
  color: white;
247
  }
248
  .gradio-container .output li.error {
@@ -251,7 +251,7 @@ with gr.Blocks(css="""
251
  }
252
  .gradio-container .button {
253
  display: block;
254
- margin: 20px auto;
255
  background-color: #3498db;
256
  color: white;
257
  border: none;
 
196
  except Exception as e:
197
  return f"<p style='color: red;'>Error: {str(e)}</p>", "Failure", "", "", "0%"
198
 
199
+ # Gradio UI with updated new styling
200
  with gr.Blocks(css="""
201
  .gradio-container {
202
+ background-color: #f9f9f9;
203
  font-family: 'Roboto', sans-serif;
204
  }
205
  .title {
 
216
  .gradio-container .output {
217
  text-align: left;
218
  margin-top: 20px;
219
+ padding: 30px;
220
  background-color: #ffffff;
221
+ border-radius: 15px;
222
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
223
  max-width: 800px;
224
  margin-left: auto;
225
  margin-right: auto;
 
235
  padding: 0;
236
  }
237
  .gradio-container .output li {
238
+ padding: 14px;
239
+ margin-bottom: 18px;
240
+ border-radius: 10px;
241
  font-size: 16px;
242
  transition: background-color 0.3s ease;
243
  }
244
  .gradio-container .output li.success {
245
+ background-color: #27ae60;
246
  color: white;
247
  }
248
  .gradio-container .output li.error {
 
251
  }
252
  .gradio-container .button {
253
  display: block;
254
+ margin: 25px auto;
255
  background-color: #3498db;
256
  color: white;
257
  border: none;