Commit
Β·
85b290e
1
Parent(s):
ade3aa2
Suppress output during package installation in task_1.py
Browse files
medvqa/competitions/gi-2025/task_1.py
CHANGED
@@ -38,12 +38,12 @@ if os.path.isfile(os.path.join(snap_dir, "predictions.json")):
|
|
38 |
os.remove(os.path.join(snap_dir, "predictions.json"))
|
39 |
|
40 |
print("π¦ Making sure of the minimum requirements to run the script π¦")
|
41 |
-
sp.run(["python", "-m", "pip", "install"] + min_library, check=True)
|
42 |
|
43 |
if os.path.isfile(os.path.join(snap_dir, "requirements.txt")):
|
44 |
print(
|
45 |
f"π¦ Installing requirements from the submission repo: {args.repo_id}/requirements.txt")
|
46 |
-
sp.run(["python", "-m", "pip", "install", "-r",
|
47 |
f"{snap_dir}/requirements.txt"], cwd=snap_dir, check=True)
|
48 |
|
49 |
sp.run(["python", f"{snap_dir}/{submission_file}"],
|
|
|
38 |
os.remove(os.path.join(snap_dir, "predictions.json"))
|
39 |
|
40 |
print("π¦ Making sure of the minimum requirements to run the script π¦")
|
41 |
+
sp.run(["python", "-m", "pip", "install", "-q"] + min_library, check=True)
|
42 |
|
43 |
if os.path.isfile(os.path.join(snap_dir, "requirements.txt")):
|
44 |
print(
|
45 |
f"π¦ Installing requirements from the submission repo: {args.repo_id}/requirements.txt")
|
46 |
+
sp.run(["python", "-m", "pip", "install", "-q", "-r",
|
47 |
f"{snap_dir}/requirements.txt"], cwd=snap_dir, check=True)
|
48 |
|
49 |
sp.run(["python", f"{snap_dir}/{submission_file}"],
|