Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
+
|