Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
MODEL_INFO = ["Model"]
|
| 2 |
AVGACC = "Overall Acc."
|
| 3 |
-
TASK_INFO = [AVGACC, "Dynamic Perception","State Transitions Perception","
|
| 4 |
|
| 5 |
DATA_TITILE_TYPE = ["markdown", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"]
|
| 6 |
CSV_DIR = "./file/result.csv"
|
|
@@ -124,7 +124,7 @@ def add_new_eval(
|
|
| 124 |
if model_name_textbox in model_name_list:
|
| 125 |
return "In the leaderboard, there already exists a model with the same name, and duplicate submissions of it are not allowed.", get_result_df()
|
| 126 |
|
| 127 |
-
questiontype = [
|
| 128 |
id2questiontype = dict(zip(range(1, 10),questiontype))
|
| 129 |
content = input_file.decode("utf-8").strip()
|
| 130 |
userdata = content.split('\n')
|
|
|
|
| 1 |
MODEL_INFO = ["Model"]
|
| 2 |
AVGACC = "Overall Acc."
|
| 3 |
+
TASK_INFO = [AVGACC, "Dynamic Perception","State Transitions Perception","Comparison Reasoning","Reasoning with External Knowledge","Explanatory Reasoning","Predictive Reasoning","Description","Counterfactual Reasoning","Camera Movement Perception"]
|
| 4 |
|
| 5 |
DATA_TITILE_TYPE = ["markdown", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"]
|
| 6 |
CSV_DIR = "./file/result.csv"
|
|
|
|
| 124 |
if model_name_textbox in model_name_list:
|
| 125 |
return "In the leaderboard, there already exists a model with the same name, and duplicate submissions of it are not allowed.", get_result_df()
|
| 126 |
|
| 127 |
+
questiontype = COLUMN_NAMES[-9:]
|
| 128 |
id2questiontype = dict(zip(range(1, 10),questiontype))
|
| 129 |
content = input_file.decode("utf-8").strip()
|
| 130 |
userdata = content.split('\n')
|