zixinz commited on
Commit
41300b4
·
1 Parent(s): 2668d28

chore: ignore pyc and __pycache__

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -249,7 +249,7 @@ def prepare_size_for_flux(img: Image.Image, target_max: int = 1024) -> tuple[int
249
  out_w = max(64, _round_mult64(scaled_w, mode="nearest"))
250
 
251
  return int(out_w), int(out_h)
252
-
253
  # ---------------- Preview depth for canvas (彩色) ----------------
254
  def preview_depth(image: Optional[Image.Image], encoder: str, max_res: int, input_size: int, fp32: bool):
255
  if image is None:
 
249
  out_w = max(64, _round_mult64(scaled_w, mode="nearest"))
250
 
251
  return int(out_w), int(out_h)
252
+ @spaces.GPU
253
  # ---------------- Preview depth for canvas (彩色) ----------------
254
  def preview_depth(image: Optional[Image.Image], encoder: str, max_res: int, input_size: int, fp32: bool):
255
  if image is None: