Spaces:
Runtime error
Runtime error
Commit
·
20943b6
1
Parent(s):
68df8d8
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ device="cpu"
|
|
14 |
img_pipe = StableDiffusionImg2ImgPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", use_auth_token=YOUR_TOKEN)
|
15 |
img_pipe.to(device)
|
16 |
|
17 |
-
#draw an
|
18 |
|
19 |
def drawImage(text, prompt): #(text, font, prompt)
|
20 |
out = Image.new("RGB", (512, 512), (0, 0, 0))
|
|
|
14 |
img_pipe = StableDiffusionImg2ImgPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", use_auth_token=YOUR_TOKEN)
|
15 |
img_pipe.to(device)
|
16 |
|
17 |
+
#draw an image based off of user's text input
|
18 |
|
19 |
def drawImage(text, prompt): #(text, font, prompt)
|
20 |
out = Image.new("RGB", (512, 512), (0, 0, 0))
|