Spaces:
Runtime error
Runtime error
Commit
Β·
98d9bf6
1
Parent(s):
ecf14af
Updated app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ stability_api = client.StabilityInference(
|
|
46 |
# Set up our initial generation parameters.
|
47 |
|
48 |
prompt ="photo of bespectacled woman, long curly blue hair, bright green eyes, freckled complexion, photorealistic, colorful, highly detailed 4k, realistic photo"
|
49 |
-
def transform_ncuda(img,prompt,cfg=
|
50 |
answers2 = stability_api.generate(
|
51 |
prompt=f"{prompt}",
|
52 |
init_image=img, # Assign our previously generated img as our Initial Image for transformation.
|
@@ -161,7 +161,7 @@ def transform(init_image,prompt,n_prompt):
|
|
161 |
###################
|
162 |
def transform1(img,prompt,n_prompt):
|
163 |
img.save("img1.png")
|
164 |
-
nimage = Image.open("img1.png").convert('RGB')
|
165 |
if cuda_error1==0:
|
166 |
try:
|
167 |
images = pipe(prompt=prompt, image=nimage,negative_prompt=n_prompt, strength=1, guidance_scale=15).images
|
|
|
46 |
# Set up our initial generation parameters.
|
47 |
|
48 |
prompt ="photo of bespectacled woman, long curly blue hair, bright green eyes, freckled complexion, photorealistic, colorful, highly detailed 4k, realistic photo"
|
49 |
+
def transform_ncuda(img,prompt,cfg=8.0,stps=30,sc=0.8):
|
50 |
answers2 = stability_api.generate(
|
51 |
prompt=f"{prompt}",
|
52 |
init_image=img, # Assign our previously generated img as our Initial Image for transformation.
|
|
|
161 |
###################
|
162 |
def transform1(img,prompt,n_prompt):
|
163 |
img.save("img1.png")
|
164 |
+
# nimage = Image.open("img1.png").convert('RGB')
|
165 |
if cuda_error1==0:
|
166 |
try:
|
167 |
images = pipe(prompt=prompt, image=nimage,negative_prompt=n_prompt, strength=1, guidance_scale=15).images
|