Abhi5ingh commited on
Commit
de651c2
1 Parent(s): 7057feb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -127,9 +127,9 @@ def sketching_tab():
127
  prefix = "sketch2img"
128
  col1,col2 = st.columns(2)
129
  with col1:
130
- sketch_pil = sketching()
131
  with col2:
132
- if sketch_pil:
133
  controlnet_conditioning_scale = st.slider(
134
  "Strength or dependence on the input sketch",
135
  min_value=0.0,
@@ -141,7 +141,7 @@ def sketching_tab():
141
  prompt_and_generate_button(
142
  prefix,
143
  "sketch2img",
144
- sketch_pil=sketch_pil,
145
  controlnet_conditioning_scale=controlnet_conditioning_scale,
146
  )
147
 
 
127
  prefix = "sketch2img"
128
  col1,col2 = st.columns(2)
129
  with col1:
130
+ image = sketching()
131
  with col2:
132
+ if image:
133
  controlnet_conditioning_scale = st.slider(
134
  "Strength or dependence on the input sketch",
135
  min_value=0.0,
 
141
  prompt_and_generate_button(
142
  prefix,
143
  "sketch2img",
144
+ image=image,
145
  controlnet_conditioning_scale=controlnet_conditioning_scale,
146
  )
147