Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ image_dir = pathlib.Path('images')
|
|
| 24 |
examples = [[path.as_posix()] for path in sorted(image_dir.glob('*.png'))]
|
| 25 |
|
| 26 |
iface = gr.Interface(
|
| 27 |
-
|
| 28 |
inputs=gr.Image(label='Input', type='numpy'),
|
| 29 |
outputs=gr.Image(label='Output', height=600),
|
| 30 |
examples=examples,
|
|
|
|
| 24 |
examples = [[path.as_posix()] for path in sorted(image_dir.glob('*.png'))]
|
| 25 |
|
| 26 |
iface = gr.Interface(
|
| 27 |
+
fn=predict,
|
| 28 |
inputs=gr.Image(label='Input', type='numpy'),
|
| 29 |
outputs=gr.Image(label='Output', height=600),
|
| 30 |
examples=examples,
|