lgaleana commited on
Commit
55d5bbe
1 Parent(s): 74684a9

Don't stop ai generation if one fails

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -272,7 +272,7 @@ with gr.Blocks() as demo:
272
  get_headline_for_image,
273
  inputs=[headline_prompt] + vars_, # type: ignore
274
  outputs=[headline, headline_image],
275
- ).success(
276
  get_headline_and_prompt,
277
  inputs=[ai_prompt_prompt] + vars_, # type: ignore
278
  outputs=[
 
272
  get_headline_for_image,
273
  inputs=[headline_prompt] + vars_, # type: ignore
274
  outputs=[headline, headline_image],
275
+ ).then(
276
  get_headline_and_prompt,
277
  inputs=[ai_prompt_prompt] + vars_, # type: ignore
278
  outputs=[