diff --git a/daras_ai_v2/base.py b/daras_ai_v2/base.py index c52d6b5a6..4362418bf 100644 --- a/daras_ai_v2/base.py +++ b/daras_ai_v2/base.py @@ -329,7 +329,7 @@ def _render_header(self): and MenuTabs.integrations != self.tab ): st.write(published_run.notes) - elif is_root_example: + elif is_root_example and MenuTabs.integrations != self.tab: st.write(self.preview_description(current_run.to_dict())) def can_user_edit_run(self, current_run: SavedRun | None = None) -> bool: diff --git a/gooey_ui/components/__init__.py b/gooey_ui/components/__init__.py index 41d76d7ce..3ab967df8 100644 --- a/gooey_ui/components/__init__.py +++ b/gooey_ui/components/__init__.py @@ -518,12 +518,15 @@ def anchor( type: typing.Literal["primary", "secondary", "tertiary", "link"] = "secondary", disabled: bool = False, unsafe_allow_html: bool = False, + new_tab: bool = False, **props, ): className = f"btn btn-theme btn-{type} " + props.pop("className", "") style = props.pop("style", {}) if disabled: style["pointerEvents"] = "none" + if new_tab: + props["target"] = "_blank" with tag("a", href=href, className=className, style=style, **props): markdown(dedent(label), unsafe_allow_html=unsafe_allow_html) diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index 179ecf6cf..b0d272b99 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -1130,7 +1130,7 @@ def integration_connect_screen( -