Spaces:
Runtime error
Runtime error
Download theme.py from Silverxwolf/FoodQast: direct link, hf CLI and curl.
- Browser
- Download file 632 Bytes
-
https://huggingface.co/spaces/Silverxwolf/FoodQast/resolve/main/theme.py
- Command line
-
hf download hf://spaces/Silverxwolf/FoodQast/theme.py
-
curl -L -o theme.py https://huggingface.co/spaces/Silverxwolf/FoodQast/resolve/main/theme.py
632 Bytes
| import streamlit as st | |
| def set_theme(): | |
| _remove_watermark() | |
| _table_style() | |
| def _remove_watermark(): | |
| hide_streamlit_style = """ | |
| <style> | |
| #MainMenu {visibility: hidden;} | |
| footer {visibility: hidden;} | |
| </style> | |
| """ | |
| st.markdown(hide_streamlit_style, unsafe_allow_html=True) | |
| def _table_style(): | |
| hide_table_row_index = """ | |
| <style> | |
| thead tr th:first-child {display:none} | |
| tbody th {display:none} | |
| </style> | |
| """ | |
| st.markdown(hide_table_row_index, unsafe_allow_html=True) |