Spaces:
Paused
Paused
Update app.py
Browse files
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 = '''
|
| 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 += "
|
| 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 |
{
|