Update app.py
Browse files
app.py
CHANGED
|
@@ -47,6 +47,8 @@ os.makedirs("scored", exist_ok=True)
|
|
| 47 |
LOCAL_DEBUG = False #not (os.environ.get("system") == "spaces")
|
| 48 |
|
| 49 |
# Display the results
|
|
|
|
|
|
|
| 50 |
eval_results['test'] = load_dataset(
|
| 51 |
RESULTS_DATASET,
|
| 52 |
YEAR_VERSION,
|
|
@@ -56,10 +58,7 @@ eval_results['test'] = load_dataset(
|
|
| 56 |
verification_mode=VerificationMode.NO_CHECKS,
|
| 57 |
trust_remote_code=True,
|
| 58 |
)
|
| 59 |
-
|
| 60 |
-
#eval_results['test'] = load_dataset(RESULTS_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload", verification_mode=VerificationMode.NO_CHECKS, trust_remote_code=True)
|
| 61 |
-
print('loaded eval', flush=True)
|
| 62 |
-
import pdb; pdb.set_trace()
|
| 63 |
# TODO: I should reactivate saving contact infos
|
| 64 |
#contact_infos = load_dataset(CONTACT_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload", verification_mode=VerificationMode.NO_CHECKS, trust_remote_code=True)
|
| 65 |
def get_dataframe_from_results(eval_results, split):
|
|
|
|
| 47 |
LOCAL_DEBUG = False #not (os.environ.get("system") == "spaces")
|
| 48 |
|
| 49 |
# Display the results
|
| 50 |
+
eval_results = {}
|
| 51 |
+
|
| 52 |
eval_results['test'] = load_dataset(
|
| 53 |
RESULTS_DATASET,
|
| 54 |
YEAR_VERSION,
|
|
|
|
| 58 |
verification_mode=VerificationMode.NO_CHECKS,
|
| 59 |
trust_remote_code=True,
|
| 60 |
)
|
| 61 |
+
|
|
|
|
|
|
|
|
|
|
| 62 |
# TODO: I should reactivate saving contact infos
|
| 63 |
#contact_infos = load_dataset(CONTACT_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload", verification_mode=VerificationMode.NO_CHECKS, trust_remote_code=True)
|
| 64 |
def get_dataframe_from_results(eval_results, split):
|