Antoine101 commited on
Commit
8c0f901
·
verified ·
1 Parent(s): 669d987

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ DETR model finetuned on "anindya64/hardhat" for hard hats detection.
37
 
38
  demo = gr.Interface(
39
  fn=predict,
40
- inputs=gr.Image(type="filepath", label="Input Image"),
41
  outputs="image",
42
  title=title,
43
  description=description
 
37
 
38
  demo = gr.Interface(
39
  fn=predict,
40
+ inputs=gr.Image(label="Input Image", type="numpy"),
41
  outputs="image",
42
  title=title,
43
  description=description