Deadmon commited on
Commit
7cb73e5
โ€ข
1 Parent(s): 5ad0b82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -27,11 +27,6 @@ from gradio_imageslider import ImageSlider
27
  js_func = """
28
  function refresh() {
29
  const url = new URL(window.location);
30
-
31
- if (url.searchParams.get('__theme') !== 'dark') {
32
- url.searchParams.set('__theme', 'dark');
33
- window.location.href = url.href;
34
- }
35
  }
36
  """
37
  def nms(x, t, s):
@@ -69,12 +64,10 @@ def HWC3(x):
69
  y = y.clip(0, 255).astype(np.uint8)
70
  return y
71
 
72
- DESCRIPTION = '''# Scribble SDXL ๐Ÿ–‹๏ธ๐ŸŒ„
73
- sketch to image with SDXL, using [@xinsir](https://huggingface.co/xinsir) [scribble sdxl controlnet](https://huggingface.co/xinsir/controlnet-scribble-sdxl-1.0), [sdxl controlnet canny](https://huggingface.co/xinsir/controlnet-canny-sdxl-1.0)
74
- '''
75
 
76
  if not torch.cuda.is_available():
77
- DESCRIPTION += "\n<p>Running on CPU ๐Ÿฅถ This demo does not work on CPU.</p>"
78
 
79
  style_list = [
80
  {
 
27
  js_func = """
28
  function refresh() {
29
  const url = new URL(window.location);
 
 
 
 
 
30
  }
31
  """
32
  def nms(x, t, s):
 
64
  y = y.clip(0, 255).astype(np.uint8)
65
  return y
66
 
67
+ DESCRIPTION = ''''''
 
 
68
 
69
  if not torch.cuda.is_available():
70
+ DESCRIPTION += ""
71
 
72
  style_list = [
73
  {