Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files123 unmodified lines124125126127127128129130131132133130134135136137123 unmodified lines Run the baseline agent on all tasks and return scores. This endpoint triggers the baseline inference script. """ import subprocess, sys, json, re import subprocess, sys, json, re, os try: # Get absolute path to the baseline script base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) baseline_script = os.path.join(base_dir, "baseline", "run_baseline.py") result = subprocess.run( [sys.executable, "baseline/run_baseline.py", "--output", "json"], [sys.executable, baseline_script, "--output", "json"], capture_output=True, text=True, timeout=120, ) server/app.py+6-2