Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,8 +21,8 @@ prompt_prefixes = {
|
|
| 21 |
|
| 22 |
current_model = models[0]
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
pipe = StableDiffusionPipeline.from_pretrained(current_model, torch_dtype=torchfloat, revision="fp16")
|
| 27 |
|
| 28 |
if torch.cuda.is_available():
|
|
|
|
| 21 |
|
| 22 |
current_model = models[0]
|
| 23 |
|
| 24 |
+
#auth_token = os.environ.get("adminToken") or True
|
| 25 |
+
#pipe = StableDiffusionPipeline.from_pretrained(current_model, use_auth_token=auth_token, torch_dtype=torchfloat, revision="fp16")
|
| 26 |
pipe = StableDiffusionPipeline.from_pretrained(current_model, torch_dtype=torchfloat, revision="fp16")
|
| 27 |
|
| 28 |
if torch.cuda.is_available():
|