Deadmon commited on
Commit
23a543b
โ€ข
1 Parent(s): 3d8f86f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env python
2
-
3
  import os
4
  import random
5
 
@@ -27,10 +25,6 @@ from gradio_imageslider import ImageSlider
27
  js_func = """
28
  function refresh() {
29
  const url = new URL(window.location);
30
- if (url.searchParams.get('__theme') !== 'dark') {
31
- url.searchParams.set('__theme', 'dark');
32
- window.location.href = url.href;
33
- }
34
  }
35
  """
36
  def nms(x, t, s):
@@ -68,12 +62,10 @@ def HWC3(x):
68
  y = y.clip(0, 255).astype(np.uint8)
69
  return y
70
 
71
- DESCRIPTION = '''# Scribble SDXL ๐Ÿ–‹๏ธ๐ŸŒ„
72
- 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)
73
- '''
74
 
75
  if not torch.cuda.is_available():
76
- DESCRIPTION += "\n<p>Running on CPU ๐Ÿฅถ This demo does not work on CPU.</p>"
77
 
78
  style_list = [
79
  {
 
 
 
1
  import os
2
  import random
3
 
 
25
  js_func = """
26
  function refresh() {
27
  const url = new URL(window.location);
 
 
 
 
28
  }
29
  """
30
  def nms(x, t, s):
 
62
  y = y.clip(0, 255).astype(np.uint8)
63
  return y
64
 
65
+ DESCRIPTION = ''''''
 
 
66
 
67
  if not torch.cuda.is_available():
68
+ DESCRIPTION += ""
69
 
70
  style_list = [
71
  {