Spaces:
Runtime error
Runtime error
changes app.py
Browse files- __pycache__/app.cpython-38.pyc +0 -0
- app.py +4 -5
__pycache__/app.cpython-38.pyc
CHANGED
Binary files a/__pycache__/app.cpython-38.pyc and b/__pycache__/app.cpython-38.pyc differ
|
|
app.py
CHANGED
@@ -21,11 +21,12 @@ demo = gr.Blocks()
|
|
21 |
|
22 |
with demo:
|
23 |
|
24 |
-
|
25 |
yolov7_inference,
|
26 |
gr.Image(type="pil"),
|
27 |
"image",
|
28 |
-
title="The detection of jar lid defects using Yolov7",
|
|
|
29 |
|
30 |
examples=[
|
31 |
os.path.join(os.path.dirname(__file__), "example1.JPG"),
|
@@ -36,8 +37,6 @@ with demo:
|
|
36 |
|
37 |
md = gr.Markdown("Confidence Threshold")
|
38 |
conf_threshold = gr.Slider(minimum=0, maximum=1, step=0.1, label='Value')
|
39 |
-
#inp = gr.Slider(minimum=0.0, maximum=1.0, value=0.2, step=0.05, label="Value"),
|
40 |
-
#inp.change(fn=yolov7_inference, inputs=inp, outputs=md)
|
41 |
conf_threshold.change(fn=update_value, inputs=conf_threshold, outputs=md)
|
42 |
|
43 |
-
demo.launch()
|
|
|
21 |
|
22 |
with demo:
|
23 |
|
24 |
+
gr.Interface(
|
25 |
yolov7_inference,
|
26 |
gr.Image(type="pil"),
|
27 |
"image",
|
28 |
+
title = "The detection of jar lid defects using Yolov7",
|
29 |
+
description = "contact: [email protected]",
|
30 |
|
31 |
examples=[
|
32 |
os.path.join(os.path.dirname(__file__), "example1.JPG"),
|
|
|
37 |
|
38 |
md = gr.Markdown("Confidence Threshold")
|
39 |
conf_threshold = gr.Slider(minimum=0, maximum=1, step=0.1, label='Value')
|
|
|
|
|
40 |
conf_threshold.change(fn=update_value, inputs=conf_threshold, outputs=md)
|
41 |
|
42 |
+
demo.launch(debug=False)
|