Spaces:
Runtime error
Runtime error
AlshimaaGamalAlsaied
commited on
Commit
Β·
f4e1b73
1
Parent(s):
523db07
commit
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def image_fn(
|
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
-
|
| 46 |
fn=image_fn,
|
| 47 |
inputs=[
|
| 48 |
gr.inputs.Image(type="pil", label="Input Image"),
|
|
@@ -62,13 +62,7 @@ image_interface = gr.Interface(
|
|
| 62 |
title="Object Detector: Identify People Without Mask",
|
| 63 |
examples=[['img1.png', 'alshimaa/yolo5_epoch100', 640, 0.25, 0.45], ['img2.png', 'alshimaa/yolo5_epoch100', 640, 0.25, 0.45], ['img3.png', 'alshimaa/yolo5_epoch100', 640, 0.25, 0.45]],
|
| 64 |
cache_examples=True,
|
|
|
|
| 65 |
theme='huggingface',
|
| 66 |
)
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
if __name__ == "__main__":
|
| 71 |
-
gr.TabbedInterface(
|
| 72 |
-
[image_interface],
|
| 73 |
-
["Detect Images"],
|
| 74 |
-
).launch()
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
+
demo_app = gr.Interface(
|
| 46 |
fn=image_fn,
|
| 47 |
inputs=[
|
| 48 |
gr.inputs.Image(type="pil", label="Input Image"),
|
|
|
|
| 62 |
title="Object Detector: Identify People Without Mask",
|
| 63 |
examples=[['img1.png', 'alshimaa/yolo5_epoch100', 640, 0.25, 0.45], ['img2.png', 'alshimaa/yolo5_epoch100', 640, 0.25, 0.45], ['img3.png', 'alshimaa/yolo5_epoch100', 640, 0.25, 0.45]],
|
| 64 |
cache_examples=True,
|
| 65 |
+
live=True,
|
| 66 |
theme='huggingface',
|
| 67 |
)
|
| 68 |
+
demo_app.launch(debug=True, enable_queue=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|