LPX55 commited on
Commit
f845b70
·
verified ·
1 Parent(s): 2719b9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -9,7 +9,7 @@ from controlnet_union import ControlNetModel_Union
9
  from pipeline_fill_sd_xl import StableDiffusionXLFillPipeline
10
  from PIL import Image, ImageDraw
11
  import numpy as np
12
- from gradio.sketch.run import create
13
 
14
  MODELS = {
15
  "RealVisXL V5.0 Lightning": "SG161222/RealVisXL_V5.0_Lightning",
@@ -347,8 +347,8 @@ title = """<h1 align="center">Diffusers Image Outpaint</h1>
347
  </div>
348
  """
349
 
350
- with gr.Blocks() as sketchapp:
351
- sketchapp = create("test.py", "test.py.json")
352
 
353
 
354
  with gr.Blocks(css=css, fill_height=True) as demo:
@@ -525,8 +525,8 @@ with gr.Blocks(css=css, fill_height=True) as demo:
525
  inputs=None,
526
  outputs=load_default_message,
527
  )
528
- with gr.TabItem("Sketch"):
529
- sketchapp.render()
530
 
531
  target_ratio.change(
532
  fn=preload_presets,
 
9
  from pipeline_fill_sd_xl import StableDiffusionXLFillPipeline
10
  from PIL import Image, ImageDraw
11
  import numpy as np
12
+ # from gradio.sketch.run import create
13
 
14
  MODELS = {
15
  "RealVisXL V5.0 Lightning": "SG161222/RealVisXL_V5.0_Lightning",
 
347
  </div>
348
  """
349
 
350
+ # with gr.Blocks() as sketchapp:
351
+ # sketchapp = create("test.py", "test.py.json")
352
 
353
 
354
  with gr.Blocks(css=css, fill_height=True) as demo:
 
525
  inputs=None,
526
  outputs=load_default_message,
527
  )
528
+ # with gr.TabItem("Sketch"):
529
+ # sketchapp.render()
530
 
531
  target_ratio.change(
532
  fn=preload_presets,