ehristoforu commited on
Commit
1acce7c
1 Parent(s): 7f669e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -88,10 +88,10 @@ def flip_text(prompt, negative_prompt, model, steps, sampler, cfg_scale, width,
88
  "model": model,
89
  "steps": steps,
90
  "sampler": sampler,
91
- "cfg_scale": cfg_scale,
92
  "width": width,
93
  "height": height,
94
- "seed": seed
95
  })
96
 
97
  job = prodia_client.wait(result)
@@ -114,8 +114,8 @@ with gr.Blocks(css=css) as demo:
114
  """)
115
  with gr.Row():
116
  with gr.Column(scale=6, min_width=600):
117
- prompt = gr.Textbox(label="Prompt", placeholder="beautiful cat, 8k", show_label=False, lines=2)
118
- negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", placeholder="What you don't want to see in the image", show_label=False, lines=3)
119
  with gr.Column():
120
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
121
 
@@ -162,8 +162,7 @@ with gr.Blocks(css=css) as demo:
162
  height = gr.Slider(label="Height", maximum=1024, value=512, step=8)
163
 
164
 
165
- cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
166
- seed = gr.Number(label="Seed", value=-1, info = """'-1' is a random seed""")
167
 
168
  text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
169
 
 
88
  "model": model,
89
  "steps": steps,
90
  "sampler": sampler,
91
+ "cfg_scale": 7,
92
  "width": width,
93
  "height": height,
94
+ "seed": -1
95
  })
96
 
97
  job = prodia_client.wait(result)
 
114
  """)
115
  with gr.Row():
116
  with gr.Column(scale=6, min_width=600):
117
+ prompt = gr.Textbox(label="Prompt", placeholder="beautiful cat, 8k", show_label=True, lines=2)
118
+ negative_prompt = gr.Textbox(label="Negative Prompt", value="text, blurry, fuzziness", placeholder="What you don't want to see in the image", show_label=True, lines=3)
119
  with gr.Column():
120
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
121
 
 
162
  height = gr.Slider(label="Height", maximum=1024, value=512, step=8)
163
 
164
 
165
+
 
166
 
167
  text_button.click(flip_text, inputs=[prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed], outputs=image_output)
168