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