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/0aa0fbf151d2b2ccff84edcd657b7835 to your computer and use it in GitHub Desktop.
Save AntoineToubhans/0aa0fbf151d2b2ccff84edcd657b7835 to your computer and use it in GitHub Desktop.
selected_commit_a = st.selectbox(
"Choose commit A",
[commit for commit in MODELS_COMMITS],
format_func=lambda commit: f"{commit.hexsha[:6]} - {commit.message} - {commit.committed_datetime}",
)
selected_commit_b = st.selectbox(
"Choose commit B",
[commit for commit in MODELS_COMMITS],
format_func=lambda commit: f"{commit.hexsha[:6]} - {commit.message} - {commit.committed_datetime}",
)
st.write("Selected Commit A and B", selected_commit_a, "/", selected_commit_b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment