RVikas commited on
Commit
0930dbf
·
verified ·
1 Parent(s): c138bc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.cache(allow_output_mutation=True)
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.cache(allow_output_mutation=True)
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