Alexander Bagus commited on
Commit
a9bdd3f
·
1 Parent(s): 52fdd94
Files changed (2) hide show
  1. app.py +1 -2
  2. static/header.html +2 -0
app.py CHANGED
@@ -87,7 +87,6 @@ def inference(
87
  prompt,
88
  input_image,
89
  image_scale=1.0,
90
- control_mode='Canny',
91
  control_context_scale = 0.75,
92
  seed=42,
93
  randomize_seed=True,
@@ -101,6 +100,7 @@ def inference(
101
  return None
102
 
103
  input_image, width, height = scale_image(input_image, image_scale)
 
104
 
105
  if control_mode == 'HED':
106
  processor = Processor('softedge_hed')
@@ -241,7 +241,6 @@ with gr.Blocks(css=css) as demo:
241
  polished_prompt,
242
  input_image,
243
  image_scale,
244
- "Canny",
245
  control_context_scale,
246
  seed,
247
  randomize_seed,
 
87
  prompt,
88
  input_image,
89
  image_scale=1.0,
 
90
  control_context_scale = 0.75,
91
  seed=42,
92
  randomize_seed=True,
 
100
  return None
101
 
102
  input_image, width, height = scale_image(input_image, image_scale)
103
+ control_mode='Canny'
104
 
105
  if control_mode == 'HED':
106
  processor = Processor('softedge_hed')
 
241
  polished_prompt,
242
  input_image,
243
  image_scale,
 
244
  control_context_scale,
245
  seed,
246
  randomize_seed,
static/header.html CHANGED
@@ -4,6 +4,8 @@
4
  </h1>
5
  <div class="grid-container" >
6
  <p>
 
 
7
  Supports multiple control conditions - including Canny, HED, Depth, Pose and MLSD.
8
  <br>
9
  If you like my spaces, please support me by visiting <a href="https://aisudo.com/" target="_blank">AiSudo</a> for more image generation 😊
 
4
  </h1>
5
  <div class="grid-container" >
6
  <p>
7
+ This space still in development, please be patient...
8
+ <br>
9
  Supports multiple control conditions - including Canny, HED, Depth, Pose and MLSD.
10
  <br>
11
  If you like my spaces, please support me by visiting <a href="https://aisudo.com/" target="_blank">AiSudo</a> for more image generation 😊