abidismail commited on
Commit
4f21dd9
1 Parent(s): 5af4636

add api support

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -317,7 +317,7 @@ with gr.Blocks(css="style.css") as demo:
317
  inputs = [model_name, prompt, guidance, steps, n_images, width, height, seed, image, strength, neg_prompt]
318
  outputs = [gallery, error_output]
319
  prompt.submit(inference, inputs=inputs, outputs=outputs)
320
- generate.click(inference, inputs=inputs, outputs=outputs)
321
 
322
  ex = gr.Examples([
323
  [models[7].name, "tiny cute and adorable kitten adventurer dressed in a warm overcoat with survival gear on a winters day", 7.5, 25],
 
317
  inputs = [model_name, prompt, guidance, steps, n_images, width, height, seed, image, strength, neg_prompt]
318
  outputs = [gallery, error_output]
319
  prompt.submit(inference, inputs=inputs, outputs=outputs)
320
+ generate.click(inference, inputs=inputs, outputs=outputs, api_name="generate_image")
321
 
322
  ex = gr.Examples([
323
  [models[7].name, "tiny cute and adorable kitten adventurer dressed in a warm overcoat with survival gear on a winters day", 7.5, 25],