Pedro Cuenca commited on
Commit
d8876a7
·
1 Parent(s): 89635f7

Debug cuda availability.

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -19,6 +19,10 @@ GUIDANCE_SCALE = 6
19
 
20
  ldm = DiffusionPipeline.from_pretrained(MODEL_ID)
21
 
 
 
 
 
22
  with gr.Blocks(css=".container { max-width: 800px; margin: auto; }") as demo:
23
  state = gr.Variable({
24
  'selected': -1,
 
19
 
20
  ldm = DiffusionPipeline.from_pretrained(MODEL_ID)
21
 
22
+ import torch
23
+ print(f"cuda: {torch.cuda.is_available()}")
24
+ print(f"device: {torch.cuda.get_device_name()}")
25
+
26
  with gr.Blocks(css=".container { max-width: 800px; margin: auto; }") as demo:
27
  state = gr.Variable({
28
  'selected': -1,