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)