Spaces:
Running
Running
commit
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
import plotly.express as px
|
4 |
-
from
|
5 |
-
from
|
6 |
|
7 |
global_unified_exam_df = None
|
8 |
global_mmlu_df = None
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
import plotly.express as px
|
4 |
+
from model_handler import ModelHandler
|
5 |
+
from data_handler import unified_exam_result_table, mmlu_result_table, unified_exam_chart, mmlu_chart
|
6 |
|
7 |
global_unified_exam_df = None
|
8 |
global_mmlu_df = None
|
data/data_handler.py β data_handler.py
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
import plotly.express as px
|
4 |
-
from
|
5 |
|
6 |
def unified_exam_result_table(unified_exam_df):
|
7 |
df = unified_exam_df.copy()
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
import plotly.express as px
|
4 |
+
from model_handler import ModelHandler
|
5 |
|
6 |
def unified_exam_result_table(unified_exam_df):
|
7 |
df = unified_exam_df.copy()
|
data/model_handler.py β model_handler.py
RENAMED
@@ -5,7 +5,7 @@ from typing import Any, Dict
|
|
5 |
import pandas as pd
|
6 |
from huggingface_hub import HfApi, hf_hub_download
|
7 |
|
8 |
-
from
|
9 |
|
10 |
class ModelHandler:
|
11 |
def __init__(self, model_infos_path="model_results.json"):
|
|
|
5 |
import pandas as pd
|
6 |
from huggingface_hub import HfApi, hf_hub_download
|
7 |
|
8 |
+
from required_categories import required_mmlu_categories, required_unified_exam_categories
|
9 |
|
10 |
class ModelHandler:
|
11 |
def __init__(self, model_infos_path="model_results.json"):
|
data/model_results.json β model_results.json
RENAMED
File without changes
|
data/required_categories.py β required_categories.py
RENAMED
File without changes
|