Skip to content

Commit b82aa6f

Browse files
vmattabidlabsgradio-pr-bot
authored
Disable sagemaker_check() for now (#9546)
* 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 <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]>
1 parent 8bcbd3f commit b82aa6f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/floppy-pandas-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gradio": minor
3+
---
4+
5+
feat:Disable sagemaker_check() for now

gradio/blocks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2523,7 +2523,9 @@ def reverse(text):
25232523
# So we need to manually cancel them. See `self.close()`..
25242524
self.startup_events()
25252525

2526-
self.is_sagemaker = utils.sagemaker_check()
2526+
self.is_sagemaker = (
2527+
False # TODO: fix Gradio's behavior in sagemaker and other hosted notebooks
2528+
)
25272529
if share is None:
25282530
if self.is_colab:
25292531
if not quiet:

0 commit comments

Comments
 (0)