mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-18 04:25:55 +08:00
fix gradio
This commit is contained in:
parent
8eb37ef413
commit
e60cf455b9
@ -261,8 +261,9 @@ def s_command(port: int, host: str, log_level: str, threads: int) -> None:
|
||||
return await asyncify(im_without_bg)(file, commons) # type: ignore
|
||||
|
||||
def gr_app(app):
|
||||
def inference(input_path, model, cmd_args):
|
||||
def inference(input_path, model, *args):
|
||||
output_path = "output.png"
|
||||
a, af, ab, ae, om, ppm, cmd_args = args
|
||||
|
||||
kwargs = {
|
||||
"alpha_matting": a,
|
||||
|
Loading…
x
Reference in New Issue
Block a user