SamiKhokhar commited on
Commit
d8b410a
·
verified ·
1 Parent(s): 318fd52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -43,9 +43,9 @@ def inference(image):
43
  iface = gr.Interface(
44
  fn=inference,
45
  inputs=gr.Image(type="numpy", label="Upload Image"),
46
- outputs=[
47
- gr.Textbox(label="Threat Detection"),
48
- gr.Image(label="Detected Image"),
49
  ],
50
  title="Weapon Detection AI",
51
  description="Upload an image to detect weapons like bombs, guns, and pistols."
@@ -53,3 +53,4 @@ iface = gr.Interface(
53
 
54
  # Step 5: Launch Gradio App
55
  iface.launch()
 
 
43
  iface = gr.Interface(
44
  fn=inference,
45
  inputs=gr.Image(type="numpy", label="Upload Image"),
46
+ outputs=[
47
+ gr.Textbox(label="Threat Detection"),
48
+ gr.Image(label="Detected Image")
49
  ],
50
  title="Weapon Detection AI",
51
  description="Upload an image to detect weapons like bombs, guns, and pistols."
 
53
 
54
  # Step 5: Launch Gradio App
55
  iface.launch()
56
+