fricativa commited on
Commit
fd6fc99
·
1 Parent(s): 867d2a5

Add generate api

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ with block:
72
  randomize=True,
73
  )
74
  text.submit(infer, inputs=[text, samples, steps, scale, seed], outputs=gallery)
75
- btn.click(infer, inputs=[text, samples, steps, scale, seed], outputs=gallery)
76
  advanced_button.click(
77
  None,
78
  [],
 
72
  randomize=True,
73
  )
74
  text.submit(infer, inputs=[text, samples, steps, scale, seed], outputs=gallery)
75
+ btn.click(infer, inputs=[text, samples, steps, scale, seed], outputs=gallery, api_name="generate")
76
  advanced_button.click(
77
  None,
78
  [],