Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aliabid94 committed Jul 6, 2023
1 parent 3b1e303 commit 12e4c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradio/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def set_event_trigger(
"js": js,
"queue": False if fn is None else queue,
"api_name": api_name,
"scroll_to_output": scroll_to_output,
"scroll_to_output": False if utils.get_space() else scroll_to_output,
"show_progress": show_progress,
"every": every,
"batch": batch,
Expand Down
4 changes: 2 additions & 2 deletions gradio/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def cleanup():
self.input_components,
self.output_components,
api_name="predict" if i == 0 else None,
scroll_to_output=self.space_id is None,
scroll_to_output=True,
preprocess=not (self.api_mode),
postprocess=not (self.api_mode),
batch=self.batch,
Expand Down Expand Up @@ -722,7 +722,7 @@ def cleanup():
self.input_components,
self.output_components,
api_name="predict" if i == 0 else None,
scroll_to_output=self.space_id is None,
scroll_to_output=True,
preprocess=not (self.api_mode),
postprocess=not (self.api_mode),
batch=self.batch,
Expand Down

0 comments on commit 12e4c98

Please sign in to comment.