linoyts HF staff commited on
Commit
2b8b77d
1 Parent(s): 6f5762b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -1,3 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Copyright 2023 The HuggingFace Team. All rights reserved.
2
  #
3
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1861,17 +1874,6 @@ def compute_noise(scheduler, *args):
1861
  raise NotImplementedError
1862
 
1863
 
1864
- import gradio as gr
1865
- import spaces
1866
- import torch
1867
- from clip_slider_pipeline import CLIPSliderXL
1868
- from diffusers import StableDiffusionXLPipeline, ControlNetModel, StableDiffusionXLControlNetPipeline, EulerDiscreteScheduler, AutoencoderKL
1869
- import time
1870
- import numpy as np
1871
- import cv2
1872
- from PIL import Image
1873
- #from ledits.pipeline_leditspp_stable_diffusion_xl import LEditsPPPipelineStableDiffusionXL
1874
-
1875
  def HWC3(x):
1876
  assert x.dtype == np.uint8
1877
  if x.ndim == 2:
 
1
+ import gradio as gr
2
+ import spaces
3
+ import torch
4
+ from clip_slider_pipeline import CLIPSliderXL
5
+ from diffusers import StableDiffusionXLPipeline, ControlNetModel, StableDiffusionXLControlNetPipeline, EulerDiscreteScheduler, AutoencoderKL
6
+ import time
7
+ import numpy as np
8
+ import cv2
9
+ from PIL import Image
10
+ #from ledits.pipeline_leditspp_stable_diffusion_xl import LEditsPPPipelineStableDiffusionXL
11
+
12
+
13
+
14
  # Copyright 2023 The HuggingFace Team. All rights reserved.
15
  #
16
  # Licensed under the Apache License, Version 2.0 (the "License");
 
1874
  raise NotImplementedError
1875
 
1876
 
 
 
 
 
 
 
 
 
 
 
 
1877
  def HWC3(x):
1878
  assert x.dtype == np.uint8
1879
  if x.ndim == 2: