atatakun commited on
Commit
527a04e
1 Parent(s): 81dfede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -4,9 +4,6 @@ import numpy as np
4
 
5
  from annotator.util import resize_image, HWC3
6
 
7
- from theme_dropdown import create_theme_dropdown # noqa: F401
8
-
9
- dropdown, js = create_theme_dropdown()
10
 
11
  DESCRIPTION = '# ControlNet v1.1 Annotators (that runs on cpu only)'
12
  DESCRIPTION += '\n<p>This app generates Control Image for Mochi Diffusion&apos;s ControlNet.</p>'
@@ -248,17 +245,15 @@ def inpaint(image, invert):
248
 
249
 
250
 
251
- def predict(im):
252
  # return im["composite"]
253
  # return im["inputmask"] # bad
254
- return im["layers"][0]
255
 
256
  block = gr.Blocks().queue()
257
 
258
  with block:
259
  gr.Markdown(DESCRIPTION)
260
-
261
-
262
  with gr.Row():
263
  gr.Markdown("## Canny Edge")
264
  with gr.Row():
 
4
 
5
  from annotator.util import resize_image, HWC3
6
 
 
 
 
7
 
8
  DESCRIPTION = '# ControlNet v1.1 Annotators (that runs on cpu only)'
9
  DESCRIPTION += '\n<p>This app generates Control Image for Mochi Diffusion&apos;s ControlNet.</p>'
 
245
 
246
 
247
 
248
+ #def predict(im):
249
  # return im["composite"]
250
  # return im["inputmask"] # bad
251
+ # return im["layers"][0]
252
 
253
  block = gr.Blocks().queue()
254
 
255
  with block:
256
  gr.Markdown(DESCRIPTION)
 
 
257
  with gr.Row():
258
  gr.Markdown("## Canny Edge")
259
  with gr.Row():