Pierre Chapuis commited on
Commit
eea5fcc
·
unverified ·
1 Parent(s): 1a05b57

bye legacy

Browse files
Files changed (1) hide show
  1. src/app.py +1 -6
src/app.py CHANGED
@@ -72,12 +72,7 @@ async def _process(ctx: EditorAPIContext, params: ProcessParams) -> Image.Image:
72
  segment_params = {}
73
 
74
  st_mask = await ctx.call_skill(f"segment/{segment_input_st}", segment_params)
75
-
76
- erase_params: dict[str, str | bool] = {
77
- "mode": "free", # new API
78
- "restore_original_resolution": False, # legacy API
79
- }
80
- st_erased = await ctx.call_skill(f"erase/{st_input}/{st_mask}", erase_params)
81
 
82
  async with ctx as client:
83
  response = await client.get(
 
72
  segment_params = {}
73
 
74
  st_mask = await ctx.call_skill(f"segment/{segment_input_st}", segment_params)
75
+ st_erased = await ctx.call_skill(f"erase/{st_input}/{st_mask}", {"mode": "free"})
 
 
 
 
 
76
 
77
  async with ctx as client:
78
  response = await client.get(