Last active
June 22, 2021 09:23
-
-
Save AntoineToubhans/b5255d5e21e644948d372f82a5b4fa6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dvc.api | |
import pandas as pd | |
@st.cache | |
def load_predictions(rev: str) -> pd.DataFrame: | |
with dvc.api.open("data/evaluation/predictions.csv", rev=rev) as f: | |
return pd.read_csv(f) | |
selected_commit = ... # Use the commit selector introduced previous section | |
predictions = load_predictions(rev=selected_commit.hexsha) | |
st.dataframe(predictions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment