Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import pandas as pd
|
|
3 |
import icc # Importing ICC computation functions
|
4 |
|
5 |
# Set up Streamlit page layout (Full Width)
|
6 |
-
st.set_page_config(layout="wide", page_title="ICC Computation
|
7 |
|
8 |
# Title and instructions
|
9 |
-
st.title("π ICC Computation
|
10 |
st.markdown("Upload a **CSV file** containing LLM evaluation scores and compute **Intraclass Correlation Coefficients (ICC)**.")
|
11 |
|
12 |
# **Two Side-by-Side Containers**
|
@@ -18,7 +18,14 @@ with container_left:
|
|
18 |
|
19 |
# File uploader
|
20 |
uploaded_file = st.file_uploader("Upload Your CSV", type=["csv"])
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
if uploaded_file is not None:
|
23 |
df = pd.read_csv(uploaded_file, delimiter=",", dtype=str) # Read as string first
|
24 |
|
|
|
3 |
import icc # Importing ICC computation functions
|
4 |
|
5 |
# Set up Streamlit page layout (Full Width)
|
6 |
+
st.set_page_config(layout="wide", page_title="LLM's Scores Evaluation: ICC Computation", page_icon="π")
|
7 |
|
8 |
# Title and instructions
|
9 |
+
st.title("π LLM's Scores Evaluation: ICC Computation")
|
10 |
st.markdown("Upload a **CSV file** containing LLM evaluation scores and compute **Intraclass Correlation Coefficients (ICC)**.")
|
11 |
|
12 |
# **Two Side-by-Side Containers**
|
|
|
18 |
|
19 |
# File uploader
|
20 |
uploaded_file = st.file_uploader("Upload Your CSV", type=["csv"])
|
21 |
+
st.markdown("""
|
22 |
+
**File Requirements:**
|
23 |
+
- The file must be in **CSV format**.
|
24 |
+
- It should contain the following columns:
|
25 |
+
- **assessor**: Identifier for the assessor (e.g., evaluator name or ID).
|
26 |
+
- **respondent**: Identifier for the respondent (e.g., participant name or ID).
|
27 |
+
- **criterion_X**: Columns starting with "criterion" representing evaluation criteria (e.g., criterion_1, criterion_2, etc.).""")
|
28 |
+
|
29 |
if uploaded_file is not None:
|
30 |
df = pd.read_csv(uploaded_file, delimiter=",", dtype=str) # Read as string first
|
31 |
|