Update app.py
Browse files
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
|
| 224 |
-
image_input = gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|