ehristoforu commited on
Commit
46be569
1 Parent(s): 06f120f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -81,7 +81,7 @@ def image_to_base64(image_path):
81
 
82
  prodia_client = Prodia(api_key=os.getenv("PRODIA_API_KEY"))
83
 
84
- def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed, upscale):
85
  result = prodia_client.generate({
86
  "prompt": prompt,
87
  "negative_prompt": negative_prompt,
@@ -91,8 +91,7 @@ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width,
91
  "cfg_scale": cfg_scale,
92
  "width": width,
93
  "height": height,
94
- "seed": seed,
95
- "upscale": True
96
  })
97
 
98
  job = prodia_client.wait(result)
@@ -166,7 +165,7 @@ with gr.Blocks(css=css) as demo:
166
  seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")
167
 
168
 
169
- text_button.click(flip_text, inputs=[prompt, negative_prompt, model, sampler, width, height, cfg_scale, seed], outputs=image_output)
170
 
171
  demo.queue(concurrency_count=10)
172
  demo.launch()
 
81
 
82
  prodia_client = Prodia(api_key=os.getenv("PRODIA_API_KEY"))
83
 
84
+ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed):
85
  result = prodia_client.generate({
86
  "prompt": prompt,
87
  "negative_prompt": negative_prompt,
 
91
  "cfg_scale": cfg_scale,
92
  "width": width,
93
  "height": height,
94
+ "seed": seed
 
95
  })
96
 
97
  job = prodia_client.wait(result)
 
165
  seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")
166
 
167
 
168
+ text_button.click(flip_text, inputs=[prompt, negative_prompt, model, sampler, cfg_scale, width, heightseed], outputs=image_output)
169
 
170
  demo.queue(concurrency_count=10)
171
  demo.launch()