chandra7799 commited on
Commit
b4bc2e0
·
verified ·
1 Parent(s): 8209bf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -2
app.py CHANGED
@@ -138,8 +138,28 @@ def process_image(image, project_name):
138
  except Exception as e:
139
  return f"Error: {str(e)}", "Failure", "", "", 0
140
 
141
- # Gradio UI
142
- with gr.Blocks(css=".gradio-container {background-color: #f0f4f8; font-family: Arial;} .title {color: #2c3e50; font-size: 24px; text-align: center;}") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  gr.Markdown("<h1 class='title'>Construction Milestone Detector</h1>")
144
  with gr.Row():
145
  image_input = gr.Image(type="filepath", label="Upload Construction Site Photo (JPG/PNG, ≤ 20MB)")
 
138
  except Exception as e:
139
  return f"Error: {str(e)}", "Failure", "", "", 0
140
 
141
+ # Gradio UI with added styling
142
+ with gr.Blocks(css="""
143
+ .gradio-container {
144
+ background-color: #f0f4f8;
145
+ font-family: Arial;
146
+ }
147
+ .title {
148
+ color: #2c3e50;
149
+ font-size: 24px;
150
+ text-align: center;
151
+ font-weight: bold;
152
+ }
153
+ .gradio-row {
154
+ text-align: center;
155
+ }
156
+ .gradio-container .output {
157
+ text-align: center;
158
+ }
159
+ .gradio-container .input {
160
+ text-align: center;
161
+ }
162
+ """) as demo:
163
  gr.Markdown("<h1 class='title'>Construction Milestone Detector</h1>")
164
  with gr.Row():
165
  image_input = gr.Image(type="filepath", label="Upload Construction Site Photo (JPG/PNG, ≤ 20MB)")