zenafey commited on
Commit
370f578
1 Parent(s): 6715cac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.txt2img(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,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.img2img(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:
 
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: