Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,5 +21,6 @@ demo = gr.Interface(fn=detect,
|
|
21 |
""",
|
22 |
inputs=[gr.Image(label='Input', type='pil'), gr.Slider(label='Threshold', minimum=0.0, maximum=1.0, value=0.3)],
|
23 |
outputs=gr.Image(label='Result', type='pil'),
|
|
|
24 |
examples=[['examples/1.jpg', 0.3], ['examples/2.jpg', 0.3], ['examples/3.jpg', 0.3], ['examples/4.jpg', 0.3], ['examples/5.jpg', 0.3], ['examples/6.jpg', 0.3]])
|
25 |
demo.launch()
|
|
|
21 |
""",
|
22 |
inputs=[gr.Image(label='Input', type='pil'), gr.Slider(label='Threshold', minimum=0.0, maximum=1.0, value=0.3)],
|
23 |
outputs=gr.Image(label='Result', type='pil'),
|
24 |
+
cache_examples=True,
|
25 |
examples=[['examples/1.jpg', 0.3], ['examples/2.jpg', 0.3], ['examples/3.jpg', 0.3], ['examples/4.jpg', 0.3], ['examples/5.jpg', 0.3], ['examples/6.jpg', 0.3]])
|
26 |
demo.launch()
|