Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,14 +42,14 @@ def generate_captions(images):
|
|
42 |
|
43 |
return captions
|
44 |
|
45 |
-
# Gradio interface
|
46 |
iface = gr.Interface(
|
47 |
fn=generate_captions,
|
48 |
-
inputs=gr.Image(type="pil", label="Upload Site Photos", multiple=True), #
|
49 |
outputs="text",
|
50 |
title="Construction Site Image-to-Text Generator",
|
51 |
description="Upload up to 10 site photos. The model will detect and describe construction activities and materials (e.g., concrete pouring, scaffolding, steel rods).",
|
52 |
-
allow_flagging="never" # Disable flagging
|
53 |
)
|
54 |
|
55 |
iface.launch()
|
|
|
42 |
|
43 |
return captions
|
44 |
|
45 |
+
# Gradio interface (use `multiple=True` for batch image uploads)
|
46 |
iface = gr.Interface(
|
47 |
fn=generate_captions,
|
48 |
+
inputs=gr.Image(type="pil", label="Upload Site Photos", multiple=True), # Batch upload of up to 10 images
|
49 |
outputs="text",
|
50 |
title="Construction Site Image-to-Text Generator",
|
51 |
description="Upload up to 10 site photos. The model will detect and describe construction activities and materials (e.g., concrete pouring, scaffolding, steel rods).",
|
52 |
+
allow_flagging="never" # Optional: Disable flagging
|
53 |
)
|
54 |
|
55 |
iface.launch()
|