Skip to content

Commit

Permalink
un-disable output components after exception is raised (#7125)
Browse files Browse the repository at this point in the history
* renable output components after exception

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
abidlabs and gradio-pr-bot committed Jan 23, 2024
1 parent 28e8a8a commit 45f725f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 109 deletions.
6 changes: 6 additions & 0 deletions .changeset/lemon-tips-switch.md
@@ -0,0 +1,6 @@
---
"@gradio/app": patch
"gradio": patch
---

fix:un-disable output components after exception is raised
2 changes: 1 addition & 1 deletion js/app/src/Blocks.svelte
Expand Up @@ -533,7 +533,7 @@
pending_outputs.push(id);
instance_map[id].props.interactive = false;
} else if (
status.stage === "complete" &&
["complete", "error"].includes(status.stage) &&
pending_outputs.includes(id) &&
!outputs_set_to_non_interactive.includes(id)
) {
Expand Down
162 changes: 54 additions & 108 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 45f725f

Please sign in to comment.