Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,6 +70,10 @@ def run_mmlu_evaluation(all_subjects, num_subjects, num_shots, num_examples):
|
|
| 70 |
num_shots (int): Number of few-shot examples (0-5)
|
| 71 |
num_examples (int): Number of examples per subject (1-10 or -1 for all)
|
| 72 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
if not model_loaded:
|
| 74 |
return "⚠️ Model not loaded. Please load the model first."
|
| 75 |
|
|
|
|
| 70 |
num_shots (int): Number of few-shot examples (0-5)
|
| 71 |
num_examples (int): Number of examples per subject (1-10 or -1 for all)
|
| 72 |
"""
|
| 73 |
+
|
| 74 |
+
if not model_loaded:
|
| 75 |
+
load_model()
|
| 76 |
+
|
| 77 |
if not model_loaded:
|
| 78 |
return "⚠️ Model not loaded. Please load the model first."
|
| 79 |
|