Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ def pred_func(img):
|
|
| 10 |
if type(out) == type({}):
|
| 11 |
return out["spiga_seg"]
|
| 12 |
|
| 13 |
-
gr=
|
| 14 |
-
outputs=[
|
| 15 |
examples=example_sample if example_sample else None,
|
| 16 |
)
|
| 17 |
gr.launch(share=False)
|
|
|
|
| 10 |
if type(out) == type({}):
|
| 11 |
return out["spiga_seg"]
|
| 12 |
|
| 13 |
+
gr=gr.Interface(fn=pred_func, inputs=['image',],
|
| 14 |
+
outputs=[gr.Image(label='output').style(height=512)],
|
| 15 |
examples=example_sample if example_sample else None,
|
| 16 |
)
|
| 17 |
gr.launch(share=False)
|