ar0551 commited on
Commit
193e3f4
·
verified ·
1 Parent(s): 526c091

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -129,6 +129,23 @@ with gr.Blocks() as demo:
129
  inputs=[prompt, strength, guidance],
130
  outputs=[edge_output, result_output]
131
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
 
133
  # 🚀 Launch the app
134
  demo.launch()
 
129
  inputs=[prompt, strength, guidance],
130
  outputs=[edge_output, result_output]
131
  )
132
+
133
+
134
+ # ✅ Add API exposure for gradio_client here
135
+ gr.Interface(
136
+ fn=generate_image,
137
+ inputs=[
138
+ prompt,
139
+ input_image,
140
+ low_threshold,
141
+ high_threshold,
142
+ strength,
143
+ guidance,
144
+ controlnet_conditioning_scale
145
+ ],
146
+ outputs=[edge_output, result_output],
147
+ api_name="/generate_image"
148
+ )
149
 
150
  # 🚀 Launch the app
151
  demo.launch()