atatakun commited on
Commit
1b893bd
1 Parent(s): a37d784

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ DESCRIPTION = '# ControlNet v1.1 Annotators (that runs on cpu only)'
8
  DESCRIPTION += '\n<p>This app generates Control Image for Mochi Diffusion&apos;s ControlNet.</p>'
9
  DESCRIPTION += '\n<p>HEIC image is not converted. Please use PNG or JPG image.</p>'
10
  DESCRIPTION += '\n<p>Gradioのバージョンが上がって変換された画像がWebpになっています。最新のMochiDiffusionでは問題なく使えるようです。</p>'
11
- DESCRIPTION += '\n<p>Safariは、ドラッグ&ドロップで画像をアップロードすることができませんので、クリックしてアップロードをご利用ください。</p>'
12
  #DESCRIPTION += '\n<p>The version of Gradio has been upgraded and the converted images are now Webp. It seems to be usable with the latest MochiDiffusion without any problems.</p>'
13
  #DESCRIPTION += '\n<p>If you are using Safari, you cannot upload images by drag and drop, so please use the upload button.</p>'
14
 
@@ -249,7 +249,7 @@ def predict(im):
249
  # return im["inputmask"] # bad
250
  return im["layers"][0]
251
 
252
- block = gr.Blocks().queue()
253
  with block:
254
  gr.Markdown(DESCRIPTION)
255
  with gr.Row():
 
8
  DESCRIPTION += '\n<p>This app generates Control Image for Mochi Diffusion&apos;s ControlNet.</p>'
9
  DESCRIPTION += '\n<p>HEIC image is not converted. Please use PNG or JPG image.</p>'
10
  DESCRIPTION += '\n<p>Gradioのバージョンが上がって変換された画像がWebpになっています。最新のMochiDiffusionでは問題なく使えるようです。</p>'
11
+ DESCRIPTION += '\n<p>Safariではドラッグ&ドロップで画像をアップロードすることができませんので、クリックしてアップロードをご利用ください。</p>'
12
  #DESCRIPTION += '\n<p>The version of Gradio has been upgraded and the converted images are now Webp. It seems to be usable with the latest MochiDiffusion without any problems.</p>'
13
  #DESCRIPTION += '\n<p>If you are using Safari, you cannot upload images by drag and drop, so please use the upload button.</p>'
14
 
 
249
  # return im["inputmask"] # bad
250
  return im["layers"][0]
251
 
252
+ block = gr.Blocks(theme=gr.themes.Soft()).queue()
253
  with block:
254
  gr.Markdown(DESCRIPTION)
255
  with gr.Row():