From dcb9e75579bdc0817b9974035181d6994551ce74 Mon Sep 17 00:00:00 2001 From: Max Skobeev Date: Sat, 15 Apr 2023 18:51:52 +0000 Subject: [PATCH] Fix: Removing annotations --- app.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 28bdc2a..6024d1a 100644 --- a/app.py +++ b/app.py @@ -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)