Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files123 unmodified lines124125126127128129130131132133123 unmodified linesRun the baseline agent on all tasks and return scores.This endpoint triggers the baseline inference script."""import subprocess, sys, json, retry:result = subprocess.run([sys.executable, "baseline/run_baseline.py", "--output", "json"],capture_output=True, text=True, timeout=120,)123 unmodified lines124125126127128129130131132133134135136137123 unmodified linesRun the baseline agent on all tasks and return scores.This endpoint triggers the baseline inference script."""import subprocess, sys, json, re, ostry:# Get absolute path to the baseline scriptbase_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_script, "--output", "json"],capture_output=True, text=True, timeout=120,)
server/app.py+6-2