Spaces:
Runtime error
Runtime error
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from pred_color import *
|
| 3 |
-
|
| 4 |
-
example_sample = [
|
| 5 |
-
"babyxiang_ai.png"
|
| 6 |
-
]
|
| 7 |
-
|
| 8 |
-
def pred_func(img):
|
| 9 |
-
out = single_pred_features(img)
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|