Rekham1110 commited on
Commit
f2a9a5e
·
verified ·
1 Parent(s): 41e9133

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -220,8 +220,12 @@ with gr.Blocks(css="""
220
  project_type_input = gr.Dropdown(label="Project Type", choices=["House", "Apartment"], value="House")
221
  project_name_input = gr.Textbox(label="Project Name (Required)", placeholder="e.g. Project_12345")
222
 
223
- # Updated to allow multiple image uploads
224
- image_input = gr.Image(type="filepath", label="Upload Construction Site Photos (JPG/PNG, ≤ 20MB each)", allow_multiple=True)
 
 
 
 
225
  submit_button = gr.Button("Process Images")
226
  output_html = gr.HTML(label="Result")
227
 
 
220
  project_type_input = gr.Dropdown(label="Project Type", choices=["House", "Apartment"], value="House")
221
  project_name_input = gr.Textbox(label="Project Name (Required)", placeholder="e.g. Project_12345")
222
 
223
+ # Updated to use gr.File for multiple image uploads
224
+ image_input = gr.File(
225
+ file_count="multiple",
226
+ file_types=["image"],
227
+ label="Upload Construction Site Photos (JPG/PNG, ≤ 20MB each)"
228
+ )
229
  submit_button = gr.Button("Process Images")
230
  output_html = gr.HTML(label="Result")
231