capradeepgujaran commited on
Commit
3e07679
·
verified ·
1 Parent(s): 0b8f58d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -282,7 +282,12 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as iface:
282
 
283
  # Single upload window for both images and videos
284
  with gr.Row():
285
- input_files = gr.File(label="Upload Construction Site Images or Videos", file_count="multiple", type="file", elem_classes="image-container")
 
 
 
 
 
286
 
287
  # Analyze Safety Hazards Button
288
  with gr.Row():
@@ -337,7 +342,6 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as iface:
337
  """
338
  )
339
 
340
- # Launch the app
341
  if __name__ == "__main__":
342
  try:
343
  iface.launch(debug=True)
 
282
 
283
  # Single upload window for both images and videos
284
  with gr.Row():
285
+ input_files = gr.File(
286
+ label="Upload Construction Site Images or Videos",
287
+ file_count="multiple",
288
+ type="filepath", # Changed from "file" to "filepath"
289
+ elem_classes="image-container"
290
+ )
291
 
292
  # Analyze Safety Hazards Button
293
  with gr.Row():
 
342
  """
343
  )
344
 
 
345
  if __name__ == "__main__":
346
  try:
347
  iface.launch(debug=True)