Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntoineToubhans/8607a46a52806d786f52a799a62930e6 to your computer and use it in GitHub Desktop.
Save AntoineToubhans/8607a46a52806d786f52a799a62930e6 to your computer and use it in GitHub Desktop.
import streamlit as st
selected_commit = st.selectbox(
"Choose your commit",
[commit for commit in MODELS_COMMITS],
format_func=lambda commit: f"{commit.hexsha[:6]} - {commit.message} - {commit.committed_datetime}",
)
st.write("Selected Commit", selected_commit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment