File size: 1,133 Bytes
4af8ee7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80961f0
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import streamlit as st
from data_loader import (
    resutls,
    metric_ud,
    tasks,
    settings,
    task_w_settings,
    datasets
)

if __name__ == "__main__":
    st.set_page_config(
        page_title="URA-LLaMa Evaluation Dashboard",
        page_icon="🧊",
        layout="wide",
        initial_sidebar_state="expanded",
    )

    st.image(["Logo BK.png", "Logo VNU-HCM.png",
             "Logo Stanford.png"], width=120)
    st.title("URA-LLaMa Evaluation Dashboard")
    st.write(
        "This dashboard is used to visualize the results of the URA-LLaMa evaluation.")

    task = st.sidebar.selectbox(
        "Select Task",
        list(tasks.keys())
    )

    setting = st.sidebar.selectbox(
        "Select Setting",
        task_w_settings[task]
    )

    task_id = tasks[task]
    dataset = st.sidebar.selectbox(
        "Select Dataset",
        list(datasets[task_id].values())
    )

    result_id = f"{task_id}-{settings[setting]}"
    result_sheet = resutls[result_id][dataset]

    # Visualize the data stored as a pandas dataframe
    st.dataframe(
        result_sheet,
        hide_index=True,
    )