Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ client = prodia.Client(api_key=prodia_key)
|
|
17 |
def process_input_text2img(prompt, negative_prompt, steps, cfg_scale, number, seed, model, sampler, aspect_ratio, upscale, save=False):
|
18 |
images = []
|
19 |
for image in range(number):
|
20 |
-
result = client.
|
21 |
steps=steps, cfg_scale=cfg_scale, seed=seed, aspect_ratio=aspect_ratio, upscale=upscale)
|
22 |
images.append(result.url)
|
23 |
if save:
|
@@ -32,7 +32,7 @@ def process_input_text2img(prompt, negative_prompt, steps, cfg_scale, number, se
|
|
32 |
def process_input_img2img(init, prompt, negative_prompt, steps, cfg_scale, number, seed, model, sampler, ds, upscale, save):
|
33 |
images = []
|
34 |
for image in range(number):
|
35 |
-
result = client.
|
36 |
steps=steps, cfg_scale=cfg_scale, seed=seed, denoising_strength=ds, upscale=upscale)
|
37 |
images.append(result.url)
|
38 |
if save:
|
|
|
17 |
def process_input_text2img(prompt, negative_prompt, steps, cfg_scale, number, seed, model, sampler, aspect_ratio, upscale, save=False):
|
18 |
images = []
|
19 |
for image in range(number):
|
20 |
+
result = client.sd_generate(prompt=prompt, negative_prompt=negative_prompt, model=model, sampler=sampler,
|
21 |
steps=steps, cfg_scale=cfg_scale, seed=seed, aspect_ratio=aspect_ratio, upscale=upscale)
|
22 |
images.append(result.url)
|
23 |
if save:
|
|
|
32 |
def process_input_img2img(init, prompt, negative_prompt, steps, cfg_scale, number, seed, model, sampler, ds, upscale, save):
|
33 |
images = []
|
34 |
for image in range(number):
|
35 |
+
result = client.sd_transform(imageUrl=init, prompt=prompt, negative_prompt=negative_prompt, model=model, sampler=sampler,
|
36 |
steps=steps, cfg_scale=cfg_scale, seed=seed, denoising_strength=ds, upscale=upscale)
|
37 |
images.append(result.url)
|
38 |
if save:
|