Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import plotly.express as px
|
|
7 |
CATEGORIES = ["Writing", "Roleplay", "Reasoning", "Math", "Coding", "Extraction", "STEM", "Humanities"]
|
8 |
|
9 |
# Load and process the single model data
|
10 |
-
@st.
|
11 |
def get_model_df():
|
12 |
q2result = []
|
13 |
# Replace "gpt-4_single.jsonl" with the actual path to your JSONL file
|
@@ -21,7 +21,7 @@ def get_model_df():
|
|
21 |
|
22 |
# Placeholder for the pair model data function
|
23 |
# Adapt this function based on how your "gpt-4_pair.jsonl" is structured
|
24 |
-
@st.
|
25 |
def get_model_df_pair():
|
26 |
# Implement similar to get_model_df if you have pair data
|
27 |
return pd.DataFrame([]) # Placeholder
|
|
|
7 |
CATEGORIES = ["Writing", "Roleplay", "Reasoning", "Math", "Coding", "Extraction", "STEM", "Humanities"]
|
8 |
|
9 |
# Load and process the single model data
|
10 |
+
@st.cache_resource
|
11 |
def get_model_df():
|
12 |
q2result = []
|
13 |
# Replace "gpt-4_single.jsonl" with the actual path to your JSONL file
|
|
|
21 |
|
22 |
# Placeholder for the pair model data function
|
23 |
# Adapt this function based on how your "gpt-4_pair.jsonl" is structured
|
24 |
+
@st.cache_resource
|
25 |
def get_model_df_pair():
|
26 |
# Implement similar to get_model_df if you have pair data
|
27 |
return pd.DataFrame([]) # Placeholder
|