Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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=[]):
|