Spaces:
Sleeping
Sleeping
Fix: Removing annotations
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ hypar["model"] = ISNetDIS()
|
|
122 |
net = build_model(hypar, device)
|
123 |
|
124 |
|
125 |
-
def inference(image
|
126 |
image_path = image
|
127 |
|
128 |
image_tensor, orig_size = load_image(image_path, hypar)
|
@@ -150,6 +150,5 @@ interface = gr.Interface(
|
|
150 |
description=description,
|
151 |
article=article,
|
152 |
allow_flagging='never',
|
153 |
-
theme="default",
|
154 |
cache_examples=False,
|
155 |
-
).launch(
|
|
|
122 |
net = build_model(hypar, device)
|
123 |
|
124 |
|
125 |
+
def inference(image):
|
126 |
image_path = image
|
127 |
|
128 |
image_tensor, orig_size = load_image(image_path, hypar)
|
|
|
150 |
description=description,
|
151 |
article=article,
|
152 |
allow_flagging='never',
|
|
|
153 |
cache_examples=False,
|
154 |
+
).queue(concurrency_count=1, api_open=True).launch(show_api=True, show_error=True)
|