stale2000 commited on
Commit
e88e5da
1 Parent(s): 88c8f2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,9 +15,10 @@ from torch import autocast
15
 
16
 
17
  openai.api_key = os.getenv('openaikey')
 
18
 
19
  device = "cuda" if torch.cuda.is_available() else "cpu"
20
- pipe = StableDiffusionPipeline.from_pretrained("stale2000/sd-dnditem", torch_dtype=torch.float16, use_auth_token=True)
21
  pipe = pipe.to(device)
22
 
23
  def predict(input, manual_query_repacement, history=[]):
 
15
 
16
 
17
  openai.api_key = os.getenv('openaikey')
18
+ authtoken = os.getenv('authtoken')
19
 
20
  device = "cuda" if torch.cuda.is_available() else "cpu"
21
+ pipe = StableDiffusionPipeline.from_pretrained("stale2000/sd-dnditem", torch_dtype=torch.float16, use_auth_token=authtoken)
22
  pipe = pipe.to(device)
23
 
24
  def predict(input, manual_query_repacement, history=[]):