Fix: Removing annotations

This commit is contained in:
Max Skobeev 2023-04-15 18:51:52 +00:00 committed by huggingface-web
parent 0a1299f14b
commit dcb9e75579

5
app.py
View File

@ -122,7 +122,7 @@ hypar["model"] = ISNetDIS()
net = build_model(hypar, device)
def inference(image: Image):
def inference(image):
image_path = image
image_tensor, orig_size = load_image(image_path, hypar)
@ -150,6 +150,5 @@ interface = gr.Interface(
description=description,
article=article,
allow_flagging='never',
theme="default",
cache_examples=False,
).launch(enable_queue=True, debug=True)
).queue(concurrency_count=1, api_open=True).launch(show_api=True, show_error=True)