Skip to content

Instantly share code, notes, and snippets.

View dataprofessor's full-sized avatar

Chanin Nantasenamat dataprofessor

View GitHub Profile
@dataprofessor
dataprofessor / app32.py
Created July 5, 2023 04:40
Hiding the red gradient bar at the top of a Streamlit app
import streamlit as st
st.markdown("""
<style>
[data-testid="stDecoration"] {
display: none;
}
</style>""",
unsafe_allow_html=True)
@dataprofessor
dataprofessor / app.py
Created July 4, 2023 16:40
Reload app upon removing an uploaded file
import streamlit as st
if "input_option" not in st.session_state:
st.session_state.input_option = "Enter Text"
placeholder = st.empty()
# Defining title Font styling
with placeholder.container():
st.session_state.input_option = st.radio("**Choose input option**", ('Enter Text', 'Upload Document'), horizontal= True)
@dataprofessor
dataprofessor / secrets.toml
Created April 11, 2023 21:01
.streamlit/secrets.toml from How to connect Streamlit to Snowflake
[snowflake]
user = "enter_your_password_here"
password = "enter_your_password_here"
account = "enter_your_account_key_here"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.