Update app.py
Browse files
app.py
CHANGED
|
@@ -7,9 +7,5 @@ device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
| 7 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN, revision="fp16", torch_dtype=torch.float16)
|
| 8 |
pipe.to(device)
|
| 9 |
|
| 10 |
-
prompt = "a photograph of an astronaut riding a horse"
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
result = pipe(prompt)
|
| 15 |
-
print(result)
|
|
|
|
| 7 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=YOUR_TOKEN, revision="fp16", torch_dtype=torch.float16)
|
| 8 |
pipe.to(device)
|
| 9 |
|
|
|
|
| 10 |
|
| 11 |
+
print("hello")
|
|
|
|
|
|
|
|
|