Spaces:
Runtime error
Runtime error
Add a command line argument preview
Browse files
app.py
CHANGED
@@ -95,7 +95,8 @@ with col3:
|
|
95 |
|
96 |
st.header("Config")
|
97 |
|
98 |
-
st.
|
|
|
99 |
st.code(f"""
|
100 |
[theme]
|
101 |
primaryColor="{primary_color}"
|
@@ -104,6 +105,15 @@ secondaryBackgroundColor="{secondary_background_color}"
|
|
104 |
textColor="{text_color}"
|
105 |
""", language="toml")
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
apply_theme = st.checkbox("Apply theme to this page")
|
109 |
|
|
|
95 |
|
96 |
st.header("Config")
|
97 |
|
98 |
+
st.subheader("Config file (`.streamlit/config.toml`)")
|
99 |
+
# st.markdown("`.streamlit/config.toml`")
|
100 |
st.code(f"""
|
101 |
[theme]
|
102 |
primaryColor="{primary_color}"
|
|
|
105 |
textColor="{text_color}"
|
106 |
""", language="toml")
|
107 |
|
108 |
+
st.subheader("Command line argument")
|
109 |
+
st.code(f"""
|
110 |
+
streamlit run app.py \\
|
111 |
+
--theme.primaryColor="{primary_color}" \\
|
112 |
+
--theme.backgroundColor="{background_color}" \\
|
113 |
+
--theme.secondaryBackgroundColor="{secondary_background_color}" \\
|
114 |
+
--theme.textColor="{text_color}"
|
115 |
+
""")
|
116 |
+
|
117 |
|
118 |
apply_theme = st.checkbox("Apply theme to this page")
|
119 |
|