BlockDetail commited on
Commit
1a2e6e1
·
1 Parent(s): 0e14651
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ with gr.Blocks() as demo:
34
  with gr.Row():
35
  stroke_type = gr.Radio(["Blocking", "Detail"], value="Detail", label="Stroke Type"),
36
  dilation_strength = gr.Slider(7, 117, value=65, step=2, label="Dilation Strength"),
37
- canvas = gr.ImageEditor(min_width=512, brush_radius = 2, brush = gr.Brush(colors=["#000000"], radius = 2, color_mode="fixed")).style(width=512, height=512)
38
  prompt_box = gr.Textbox(width="50vw", label="Prompt")
39
  with gr.Row():
40
  btn = gr.Button("Generate").style(width=100, height=80)
@@ -134,7 +134,7 @@ with gr.Blocks() as demo:
134
  color = "#0000FF"
135
  else:
136
  color = "#000000"
137
- return gr.Image(min_width=512, brush = gr.Brush(colors=[color], radius = 2, color_mode="fixed")).style(width=400, height=400)
138
 
139
  def change_background(option):
140
  global all_gens
 
34
  with gr.Row():
35
  stroke_type = gr.Radio(["Blocking", "Detail"], value="Detail", label="Stroke Type"),
36
  dilation_strength = gr.Slider(7, 117, value=65, step=2, label="Dilation Strength"),
37
+ canvas = gr.ImageEditor(min_width=512, brush = gr.Brush(colors=["#000000"], default_size = 2, color_mode="fixed")).style(width=512, height=512)
38
  prompt_box = gr.Textbox(width="50vw", label="Prompt")
39
  with gr.Row():
40
  btn = gr.Button("Generate").style(width=100, height=80)
 
134
  color = "#0000FF"
135
  else:
136
  color = "#000000"
137
+ return gr.Image(min_width=512, brush = gr.Brush(colors=[color], default_size = 2, color_mode="fixed")).style(width=400, height=400)
138
 
139
  def change_background(option):
140
  global all_gens