Iwaku-Real commited on
Commit
69150bb
·
verified ·
1 Parent(s): 9dc331c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -113,8 +113,8 @@ with gr.Blocks(css=css) as demo:
113
  with gr.Tab("txt2img"):
114
  with gr.Row():
115
  with gr.Column(scale=6, min_width=600):
116
- prompt = gr.Textbox("space warrior, beautiful, female, ultrarealistic, soft lighting, 8k", placeholder="Prompt", show_label=False, lines=3)
117
- negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="3d, cartoon, anime, (deformed eyes, nose, ears, nose), bad anatomy, ugly")
118
  with gr.Column():
119
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
120
 
@@ -126,19 +126,19 @@ with gr.Blocks(css=css) as demo:
126
  sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
127
 
128
  with gr.Column(scale=1):
129
- steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=25, value=20, step=1)
130
 
131
  with gr.Row():
132
  with gr.Column(scale=1):
133
- width = gr.Slider(label="Width", minimum=512, maximum=1536, value=1024, step=8)
134
- height = gr.Slider(label="Height", minimum=512, maximum=1536, value=1024, step=8)
135
- gr.Markdown(elem_id="resolution", value="*Resolution Maximum: 1MP (1048576 px)*")
136
 
137
  with gr.Column(scale=1):
138
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
139
  batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
140
 
141
- cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
142
  seed = gr.Number(label="Seed", value=-1)
143
 
144
 
 
113
  with gr.Tab("txt2img"):
114
  with gr.Row():
115
  with gr.Column(scale=6, min_width=600):
116
+ prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
117
+ negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="")
118
  with gr.Column():
119
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
120
 
 
126
  sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
127
 
128
  with gr.Column(scale=1):
129
+ steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=50, value=50, step=1)
130
 
131
  with gr.Row():
132
  with gr.Column(scale=1):
133
+ width = gr.Slider(label="Width", minimum=256, maximum=4296, value=1024, step=1)
134
+ height = gr.Slider(label="Height", minimum=256, maximum=4296, value=1024, step=1)
135
+ gr.Markdown(elem_id="resolution", value="***Max Resolution: 1.1MP (1,100,000px)*")
136
 
137
  with gr.Column(scale=1):
138
  batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
139
  batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
140
 
141
+ cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=0.1)
142
  seed = gr.Number(label="Seed", value=-1)
143
 
144