Skip to content

Commit

Permalink
Disable sagemaker_check() for now (#9546)
Browse files Browse the repository at this point in the history
* Add is_sagemaker param to Blocks, so sagemaker_check() can be explicitly disabled

* revert

* add changeset

* format

* add changeset

---------

Co-authored-by: Mate Valko <>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 5, 2024
1 parent 8bcbd3f commit b82aa6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/floppy-pandas-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Disable sagemaker_check() for now
4 changes: 3 additions & 1 deletion gradio/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,9 @@ def reverse(text):
# So we need to manually cancel them. See `self.close()`..
self.startup_events()

self.is_sagemaker = utils.sagemaker_check()
self.is_sagemaker = (
False # TODO: fix Gradio's behavior in sagemaker and other hosted notebooks
)
if share is None:
if self.is_colab:
if not quiet:
Expand Down

0 comments on commit b82aa6f

Please sign in to comment.