From a50bdd80f89c36adbc123d1daf9b42c97d5e1505 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Wed, 22 Feb 2023 18:08:07 +0900 Subject: [PATCH 1/3] Set embed mode of a Streamlit app example --- docs/hub/spaces-sdks-streamlit.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/hub/spaces-sdks-streamlit.md b/docs/hub/spaces-sdks-streamlit.md index afb6e3605..43dd4f598 100644 --- a/docs/hub/spaces-sdks-streamlit.md +++ b/docs/hub/spaces-sdks-streamlit.md @@ -77,9 +77,23 @@ You can use the HTML ` + ``` - + + +Please note that we have added `?embed=true` to the URL, which makes the Streamlit app rendered in embed mode, removing some non-essential parts such as the footer. + Additionally, you can checkout [our documentation](./spaces-embed). From 2aa8cb51a47cf80b7faf7476d91029d16070757e Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Wed, 22 Feb 2023 18:20:39 +0900 Subject: [PATCH 2/3] Fix a comment in Markdown --- docs/hub/spaces-sdks-streamlit.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/hub/spaces-sdks-streamlit.md b/docs/hub/spaces-sdks-streamlit.md index 43dd4f598..4c3f3309c 100644 --- a/docs/hub/spaces-sdks-streamlit.md +++ b/docs/hub/spaces-sdks-streamlit.md @@ -83,10 +83,11 @@ For example, the demo above can be embedded in these docs with the following tag > ``` + -Please note that we have added `?embed=true` to the URL, which makes the Streamlit app rendered in embed mode, removing some non-essential parts such as the footer. +Please note that we have added `?embed=true` to the URL, which activates the embed mode of the Streamlit app, removing some spacers and the footer for slim embeds. Additionally, you can checkout [our documentation](./spaces-embed).