Upload scripts/run_experiment.py with huggingface_hub
Browse files
scripts/run_experiment.py
CHANGED
|
@@ -25,8 +25,9 @@ os.environ["KLENT_OUTPUT_DIR"] = str(output_dir)
|
|
| 25 |
|
| 26 |
print(json.dumps({"event": "start", "env_id": env_id, "seed": seed, "args": args}), flush=True)
|
| 27 |
|
|
|
|
| 28 |
proc = subprocess.Popen(
|
| 29 |
-
[
|
| 30 |
stdout=subprocess.PIPE,
|
| 31 |
stderr=subprocess.STDOUT,
|
| 32 |
text=True,
|
|
|
|
| 25 |
|
| 26 |
print(json.dumps({"event": "start", "env_id": env_id, "seed": seed, "args": args}), flush=True)
|
| 27 |
|
| 28 |
+
python_cmd = "python3" if sys.platform != "win32" else "python"
|
| 29 |
proc = subprocess.Popen(
|
| 30 |
+
[python_cmd, "main.py"] + args,
|
| 31 |
stdout=subprocess.PIPE,
|
| 32 |
stderr=subprocess.STDOUT,
|
| 33 |
text=True,
|