Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ from torch import autocast
|
|
| 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)
|
| 21 |
pipe = pipe.to(device)
|
| 22 |
|
| 23 |
def predict(input, manual_query_repacement, history=[]):
|
|
|
|
| 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=[]):
|