TenPoisk
commited on
Commit
·
e44c042
1
Parent(s):
b82a20d
Update sd-2-1.py
Browse files
sd-2-1.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
#import
|
2 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
#description
|
5 |
description = """<div>
|
|
|
1 |
#import
|
2 |
import gradio as gr
|
3 |
+
import torch
|
4 |
+
|
5 |
+
DESCRIPTION = '# Kandinsky 2.1'
|
6 |
+
if not torch.cuda.is_available():
|
7 |
+
DESCRIPTION += '\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>'
|
8 |
|
9 |
#description
|
10 |
description = """<div>
|