Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ CATEGORIES = ["Writing", "Roleplay", "Reasoning", "Math", "Coding", "Extraction"
|
|
| 11 |
def get_model_df():
|
| 12 |
q2result = []
|
| 13 |
# Replace "gpt-4_single.jsonl" with the actual path to your JSONL file
|
| 14 |
-
with open("gpt-4_single.jsonl", "r") as fin:
|
| 15 |
for line in fin:
|
| 16 |
obj = json.loads(line)
|
| 17 |
obj["category"] = CATEGORIES[(obj["question_id"] - 81) // 10]
|
|
|
|
| 11 |
def get_model_df():
|
| 12 |
q2result = []
|
| 13 |
# Replace "gpt-4_single.jsonl" with the actual path to your JSONL file
|
| 14 |
+
with open("data/gpt-4_single.jsonl", "r") as fin:
|
| 15 |
for line in fin:
|
| 16 |
obj = json.loads(line)
|
| 17 |
obj["category"] = CATEGORIES[(obj["question_id"] - 81) // 10]
|