Nick088 commited on
Commit
925b9c1
1 Parent(s): 5d880cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import torch
2
  from diffusers import StableDiffusionPipeline
3
  import gradio as gr
 
4
  import spaces
5
 
 
 
6
  if torch.cuda.is_available():
7
  device = "cuda"
8
  print("Using GPU")
 
1
  import torch
2
  from diffusers import StableDiffusionPipeline
3
  import gradio as gr
4
+ import os
5
  import spaces
6
 
7
+ HF_TOKEN = os.getenv['HF_TOKEN']
8
+
9
  if torch.cuda.is_available():
10
  device = "cuda"
11
  print("Using GPU")