Skip to content

Commit

Permalink
try around plot
Browse files Browse the repository at this point in the history
  • Loading branch information
hmacdope committed Oct 9, 2024
1 parent e255bec commit 8e1839a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@ def convert_df(df):
err = predictions[:, 1] # rejoin with the original dataframe

# check if the model has a plot prepared
plot_url = model.pull_plot("test_performance.png", return_as="url")

try:
plot_url = model.pull_plot("test_performance.png", return_as="url")
except:
plot_url = None

if plot_url:
# we are showing the latest test set performance plot
st.markdown("### Model test set performance")
Expand Down

0 comments on commit 8e1839a

Please sign in to comment.