BlockDetail commited on
Commit
13a1ef5
1 Parent(s): 41c0a46
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -36,7 +36,7 @@ with gr.Blocks() as demo:
36
  with gr.Row():
37
  # stroke_type = gr.Radio(["Blocking", "Detail"], value="Detail", label="Stroke Type"),
38
  dilation_strength = gr.Slider(7, 117, value=65, step=2, label="Dilation Strength"),
39
- canvas = gr.ImageEditor(min_width=512, brush = gr.Brush(colors=["#00FF00", "#000000"], default_size = 2, color_mode="fixed"), width=512, height=512)
40
  prompt_box = gr.Textbox(label="Prompt")
41
  with gr.Row():
42
  btn = gr.Button("Generate")
@@ -44,13 +44,13 @@ with gr.Blocks() as demo:
44
  with gr.Column():
45
  num_samples = gr.Slider(1, 5, value=2, step=1, label="Num Samples to Generate"),
46
  with gr.Tab("Renoised Images"):
47
- gallery0 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height="auto", preview=True, interactive=False, min_width=512)
48
  with gr.Tab("Renoised Overlay"):
49
- gallery1 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height="auto", preview=True, interactive=False, min_width=512)
50
  with gr.Tab("Pre-Renoise Images"):
51
- gallery2 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height="auto", preview=True, interactive=False, min_width=512)
52
  with gr.Tab("Pre-Renoise Overlay"):
53
- gallery3 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height="auto", preview=True, interactive=False, min_width=512)
54
  for k in range(num_images):
55
  start_state.append([None, None])
56
  sketch_states = gr.State(start_state)
 
36
  with gr.Row():
37
  # stroke_type = gr.Radio(["Blocking", "Detail"], value="Detail", label="Stroke Type"),
38
  dilation_strength = gr.Slider(7, 117, value=65, step=2, label="Dilation Strength"),
39
+ canvas = gr.ImageEditor(value = None, min_width=512, brush = gr.Brush(colors=["#00FF00", "#000000"], default_size = 2, color_mode="fixed"), width=512, height=512)
40
  prompt_box = gr.Textbox(label="Prompt")
41
  with gr.Row():
42
  btn = gr.Button("Generate")
 
44
  with gr.Column():
45
  num_samples = gr.Slider(1, 5, value=2, step=1, label="Num Samples to Generate"),
46
  with gr.Tab("Renoised Images"):
47
+ gallery0 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height=512, preview=True, interactive=False, min_width=512)
48
  with gr.Tab("Renoised Overlay"):
49
+ gallery1 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height=512, preview=True, interactive=False, min_width=512)
50
  with gr.Tab("Pre-Renoise Images"):
51
+ gallery2 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height=512, preview=True, interactive=False, min_width=512)
52
  with gr.Tab("Pre-Renoise Overlay"):
53
+ gallery3 = gr.Gallery(show_label=False, columns=[num_samples[0].value], rows=[2], object_fit="contain", height=512, preview=True, interactive=False, min_width=512)
54
  for k in range(num_images):
55
  start_state.append([None, None])
56
  sketch_states = gr.State(start_state)