skytnt commited on
Commit
e7f3d00
1 Parent(s): 3e5dd6b
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -286,7 +286,8 @@ if __name__ == '__main__':
286
  with gr.Column():
287
  gr.Markdown("generate image randomly or by seed")
288
  with gr.Row():
289
- gen_input1 = gr.Radio(label="method", choices=["random", "use seed"], type="index")
 
290
  gen_input2 = gr.Number(value=1, label="seed ( int between -2^31 and 2^31 - 1 )")
291
  gen_input3 = gr.Slider(minimum=0, maximum=1, step=0.01, value=0.6, label="truncation psi 1")
292
  gen_input4 = gr.Slider(minimum=0, maximum=1, step=0.01, value=1, label="truncation psi 2")
@@ -322,7 +323,7 @@ if __name__ == '__main__':
322
  with gr.Row():
323
  with gr.Column():
324
  gr.Markdown("please select image 1")
325
- select_img1_dropdown = gr.Radio(label="source",
326
  choices=["current generated image",
327
  "current encoded image"], type="index")
328
  with gr.Group():
@@ -331,7 +332,7 @@ if __name__ == '__main__':
331
  select_img1_output_w = gr.Variable()
332
  with gr.Column():
333
  gr.Markdown("please select image 2")
334
- select_img2_dropdown = gr.Radio(label="source",
335
  choices=["current generated image",
336
  "current encoded image"], type="index")
337
  with gr.Group():
 
286
  with gr.Column():
287
  gr.Markdown("generate image randomly or by seed")
288
  with gr.Row():
289
+ gen_input1 = gr.Radio(label="method", value="random",
290
+ choices=["random", "use seed"], type="index")
291
  gen_input2 = gr.Number(value=1, label="seed ( int between -2^31 and 2^31 - 1 )")
292
  gen_input3 = gr.Slider(minimum=0, maximum=1, step=0.01, value=0.6, label="truncation psi 1")
293
  gen_input4 = gr.Slider(minimum=0, maximum=1, step=0.01, value=1, label="truncation psi 2")
 
323
  with gr.Row():
324
  with gr.Column():
325
  gr.Markdown("please select image 1")
326
+ select_img1_dropdown = gr.Radio(label="source", value="current generated image",
327
  choices=["current generated image",
328
  "current encoded image"], type="index")
329
  with gr.Group():
 
332
  select_img1_output_w = gr.Variable()
333
  with gr.Column():
334
  gr.Markdown("please select image 2")
335
+ select_img2_dropdown = gr.Radio(label="source", value="current generated image",
336
  choices=["current generated image",
337
  "current encoded image"], type="index")
338
  with gr.Group():