prithivMLmods commited on
Commit
515e62b
1 Parent(s): b2fd7f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -16
app.py CHANGED
@@ -124,27 +124,25 @@ footer {
124
  '''
125
  with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
126
  gr.Markdown(DESCRIPTIONx)
127
- with gr.Row():
128
- prompt = gr.Text(
129
- label="Prompt",
130
- show_label=False,
131
- max_lines=1,
132
- placeholder="Enter your prompt",
133
- container=False,
134
- )
135
-
136
- run_button = gr.Button("Run", scale=0, variant="primary")
137
-
138
  result = gr.Image(label="Result", show_label=False)
139
 
140
- with gr.Row(visible=True):
141
  grid_size_selection = gr.Dropdown(
142
  choices=["2x1", "1x2", "2x2", "2x3", "3x2", "1x1"],
143
  value="1x1",
144
  label="Grid Size"
145
  )
146
 
147
- with gr.Row(visible=True):
148
  style_selection = gr.Radio(
149
  show_label=True,
150
  container=True,
@@ -154,7 +152,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
154
  label="Quality Style",
155
  )
156
 
157
- with gr.Accordion("Advanced Settings", open=False):
158
  negative_prompt = gr.Text(
159
  label="Negative prompt",
160
  max_lines=1,
@@ -172,7 +170,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
172
 
173
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
174
 
175
- with gr.Row():
176
  width = gr.Slider(
177
  label="Width",
178
  minimum=512,
@@ -189,7 +187,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
189
  value=1024,
190
  )
191
 
192
- with gr.Row():
193
  guidance_scale = gr.Slider(
194
  label="Guidance scale",
195
  minimum=0.0,
 
124
  '''
125
  with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
126
  gr.Markdown(DESCRIPTIONx)
127
+ with gr.Row():
128
+ prompt = gr.Text(
129
+ label="Prompt",
130
+ show_label=False,
131
+ max_lines=1,
132
+ placeholder="Enter your prompt",
133
+ container=False,
134
+ )
135
+ run_button = gr.Button("Run", scale=0, variant="primary")
 
 
136
  result = gr.Image(label="Result", show_label=False)
137
 
138
+ with gr.Row(visible=True):
139
  grid_size_selection = gr.Dropdown(
140
  choices=["2x1", "1x2", "2x2", "2x3", "3x2", "1x1"],
141
  value="1x1",
142
  label="Grid Size"
143
  )
144
 
145
+ with gr.Row(visible=True):
146
  style_selection = gr.Radio(
147
  show_label=True,
148
  container=True,
 
152
  label="Quality Style",
153
  )
154
 
155
+ with gr.Accordion("Advanced Settings", open=False):
156
  negative_prompt = gr.Text(
157
  label="Negative prompt",
158
  max_lines=1,
 
170
 
171
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
172
 
173
+ with gr.Row():
174
  width = gr.Slider(
175
  label="Width",
176
  minimum=512,
 
187
  value=1024,
188
  )
189
 
190
+ with gr.Row():
191
  guidance_scale = gr.Slider(
192
  label="Guidance scale",
193
  minimum=0.0,