myn0908 commited on
Commit
6ce9552
1 Parent(s): 4da710a

fixing row

Browse files
Files changed (1) hide show
  1. app.py +58 -58
app.py CHANGED
@@ -216,67 +216,67 @@ with gr.Blocks(css=css, theme="NoCrypt/miku@1.2.1") as demo:
216
  show_label=False,
217
  show_download_button=True,
218
  )
219
- # with gr.Group():
220
- # with gr.Row():
221
- prompt = gr.Textbox(label="Personalized Text", value="", show_label=True)
222
- run_button = gr.Button("Generate 🪄", min_width=5, variant='primary')
223
- randomize_seed = gr.Button(value='\U0001F3B2', variant='primary')
224
- clear_button = gr.Button("Reset Sketch Session", min_width=10, variant='primary')
225
- with gr.Accordion("S2I Advances Option", open=True):
226
  with gr.Row():
227
- ui_mode = gr.Radio(
228
- choices=["Light Mode", "Dark Mode"],
229
- value="Light Mode",
230
- label="Switch Light/Dark Mode UI",
231
- interactive=True)
232
- type_image = gr.Radio(
233
- choices=["RGB", "SKETCH"],
234
- value="SKETCH",
235
- label="Type of Image (Color Image or Sketch Image)",
236
- interactive=True)
237
- input_type = gr.Radio(
238
- choices=["live-sketch", "upload"],
239
- value="live-sketch",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  label="Type Sketch2Image models",
241
  interactive=True)
242
- style = gr.Dropdown(
243
- label="Style",
244
- choices=controller.STYLE_NAMES,
245
- value=controller.DEFAULT_STYLE_NAME,
246
- scale=1,
247
- )
248
- prompt_temp = gr.Textbox(
249
- label="Prompt Style Template",
250
- value=controller.styles[controller.DEFAULT_STYLE_NAME],
251
- scale=2,
252
- max_lines=1,
253
- )
254
- seed = gr.Textbox(label="Seed", value='42', scale=1, min_width=50)
255
- zero_gpu_options = gr.Radio(
256
- choices=["GPU", "CPU"],
257
- value="GPU",
258
- label="GPU & CPU Options Spaces",
259
- interactive=True)
260
- half_model = gr.Radio(
261
- choices=["float32", "float16"],
262
- value="float16",
263
- label="Demo Speed",
264
- interactive=True)
265
- model_options = gr.Radio(
266
- choices=["100k", "350k"],
267
- value="350k",
268
- label="Type Sketch2Image models",
269
- interactive=True)
270
-
271
- val_r = gr.Slider(
272
- label="Sketch guidance: ",
273
- show_label=True,
274
- minimum=0,
275
- maximum=1,
276
- value=0.4,
277
- step=0.01,
278
- scale=3,
279
- )
280
 
281
  demo.load(None, None, None, js=scripts)
282
  ui_mode.change(None, [], [], js=get_dark_mode())
 
216
  show_label=False,
217
  show_download_button=True,
218
  )
219
+ with gr.Group():
 
 
 
 
 
 
220
  with gr.Row():
221
+ run_button = gr.Button("Generate 🪄", min_width=5, variant='primary')
222
+ randomize_seed = gr.Button(value='\U0001F3B2', variant='primary')
223
+ clear_button = gr.Button("Reset Sketch Session", min_width=10, variant='primary')
224
+ prompt = gr.Textbox(label="Personalized Text", value="", show_label=True)
225
+ with gr.Accordion("S2I Advances Option", open=True):
226
+ with gr.Row():
227
+ ui_mode = gr.Radio(
228
+ choices=["Light Mode", "Dark Mode"],
229
+ value="Light Mode",
230
+ label="Switch Light/Dark Mode UI",
231
+ interactive=True)
232
+ type_image = gr.Radio(
233
+ choices=["RGB", "SKETCH"],
234
+ value="SKETCH",
235
+ label="Type of Image (Color Image or Sketch Image)",
236
+ interactive=True)
237
+ input_type = gr.Radio(
238
+ choices=["live-sketch", "upload"],
239
+ value="live-sketch",
240
+ label="Type Sketch2Image models",
241
+ interactive=True)
242
+ style = gr.Dropdown(
243
+ label="Style",
244
+ choices=controller.STYLE_NAMES,
245
+ value=controller.DEFAULT_STYLE_NAME,
246
+ scale=1,
247
+ )
248
+ prompt_temp = gr.Textbox(
249
+ label="Prompt Style Template",
250
+ value=controller.styles[controller.DEFAULT_STYLE_NAME],
251
+ scale=2,
252
+ max_lines=1,
253
+ )
254
+ seed = gr.Textbox(label="Seed", value='42', scale=1, min_width=50)
255
+ zero_gpu_options = gr.Radio(
256
+ choices=["GPU", "CPU"],
257
+ value="GPU",
258
+ label="GPU & CPU Options Spaces",
259
+ interactive=True)
260
+ half_model = gr.Radio(
261
+ choices=["float32", "float16"],
262
+ value="float16",
263
+ label="Demo Speed",
264
+ interactive=True)
265
+ model_options = gr.Radio(
266
+ choices=["100k", "350k"],
267
+ value="350k",
268
  label="Type Sketch2Image models",
269
  interactive=True)
270
+
271
+ val_r = gr.Slider(
272
+ label="Sketch guidance: ",
273
+ show_label=True,
274
+ minimum=0,
275
+ maximum=1,
276
+ value=0.4,
277
+ step=0.01,
278
+ scale=3,
279
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
 
281
  demo.load(None, None, None, js=scripts)
282
  ui_mode.change(None, [], [], js=get_dark_mode())