doevent commited on
Commit
dcb9e75
1 Parent(s): 0a1299f

Fix: Removing annotations

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -122,7 +122,7 @@ hypar["model"] = ISNetDIS()
122
  net = build_model(hypar, device)
123
 
124
 
125
- def inference(image: 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(enable_queue=True, debug=True)
 
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)