Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
|
|
8 |
from torch import autocast
|
9 |
import gradio as gr
|
10 |
|
|
|
11 |
CUDA_VISIBLE_DEVICES=1
|
12 |
|
13 |
def txt2img(prompt):
|
|
|
8 |
from torch import autocast
|
9 |
import gradio as gr
|
10 |
|
11 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
12 |
CUDA_VISIBLE_DEVICES=1
|
13 |
|
14 |
def txt2img(prompt):
|