jordandotzel commited on
Commit
1e44444
·
verified ·
1 Parent(s): ae61bc8

Enable API

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -82,7 +82,6 @@ with gr.Blocks(css=css) as demo:
82
  with gr.Column(elem_id="col-container"):
83
  gr.Markdown("""
84
  # SD3 ControlNet
85
-
86
  Experiment with Stable Diffusion 3 ControlNet models proposed and maintained by the InstantX team.<br />
87
  Model card: [InstantX/SD3-Controlnet-Canny](https://huggingface.co/InstantX/SD3-Controlnet-Canny)
88
  """)
@@ -115,4 +114,6 @@ with gr.Blocks(css=css) as demo:
115
  outputs = [result, canny_used],
116
  show_api=False
117
  )
118
- demo.queue().launch()
 
 
 
82
  with gr.Column(elem_id="col-container"):
83
  gr.Markdown("""
84
  # SD3 ControlNet
 
85
  Experiment with Stable Diffusion 3 ControlNet models proposed and maintained by the InstantX team.<br />
86
  Model card: [InstantX/SD3-Controlnet-Canny](https://huggingface.co/InstantX/SD3-Controlnet-Canny)
87
  """)
 
114
  outputs = [result, canny_used],
115
  show_api=False
116
  )
117
+
118
+ # Enable API by setting enable_api=True
119
+ demo.queue().launch(enable_api=True)