Spaces:
Runtime error
Runtime error
Don't stop ai generation if one fails
Browse files- 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 |
-
).
|
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=[
|