Fung804 commited on
Commit
e6f363e
β€’
1 Parent(s): f505125

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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):