Rammohan0504 commited on
Commit
6c9bf3f
·
verified ·
1 Parent(s): ef4e447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,11 +45,11 @@ def generate_captions(images):
45
  # Gradio interface
46
  iface = gr.Interface(
47
  fn=generate_captions,
48
- inputs=gr.Image(type="pil", tool="editor", 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"
53
  )
54
 
55
  iface.launch()
 
45
  # Gradio interface
46
  iface = gr.Interface(
47
  fn=generate_captions,
48
+ inputs=gr.Image(type="pil", multiple=True, label="Upload Site Photos"), # Handle 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" # Disable flagging (optional)
53
  )
54
 
55
  iface.launch()