Skip to content

Instantly share code, notes, and snippets.

@ahmedbesbes
Created July 23, 2022 10:00
Show Gist options
  • Save ahmedbesbes/4ace3fcc4b7f9ee096474eb689302551 to your computer and use it in GitHub Desktop.
Save ahmedbesbes/4ace3fcc4b7f9ee096474eb689302551 to your computer and use it in GitHub Desktop.
import numpy as np
import pandas as pd
import streamlit as st
tabs = st.tabs(["metrics", "plots", "reports"])
tab_metrics = tabs[0]
with tab_metrics:
st.metric("Precision", 0.85, delta=0.2)
st.metric("Recall", 0.60, delta=-0.1)
tab_plots = tabs[1]
with tab_plots:
cols = st.columns(2)
with cols[0]:
st.image("./roc.png")
with cols[1]:
st.image("./loss.webp")
x = np.arange(0, 100, 0.01) * 1.5
noise = np.random.rand(*x.shape)
y = x + noise
data = pd.DataFrame(index=x, data=y, columns=["y"])
st.line_chart(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment