Update task_template.py
Browse files- task_template.py +2 -2
task_template.py
CHANGED
|
@@ -102,7 +102,7 @@ def die(msg):
|
|
| 102 |
print(msg, file=sys.stderr)
|
| 103 |
sys.exit(1)
|
| 104 |
|
| 105 |
-
parser = argparse.ArgumentParser(description="Submit a
|
| 106 |
args = parser.parse_args()
|
| 107 |
|
| 108 |
submit_path = OUTPUT_CSV
|
|
@@ -115,7 +115,7 @@ try:
|
|
| 115 |
resp = requests.post(
|
| 116 |
f"{BASE_URL}/submit/{TASK_ID}",
|
| 117 |
headers={"X-API-Key": API_KEY},
|
| 118 |
-
files={"file": (submit_path.name, f, "application/
|
| 119 |
timeout=(10, 600),
|
| 120 |
)
|
| 121 |
try:
|
|
|
|
| 102 |
print(msg, file=sys.stderr)
|
| 103 |
sys.exit(1)
|
| 104 |
|
| 105 |
+
parser = argparse.ArgumentParser(description="Submit a CSV file to the server.")
|
| 106 |
args = parser.parse_args()
|
| 107 |
|
| 108 |
submit_path = OUTPUT_CSV
|
|
|
|
| 115 |
resp = requests.post(
|
| 116 |
f"{BASE_URL}/submit/{TASK_ID}",
|
| 117 |
headers={"X-API-Key": API_KEY},
|
| 118 |
+
files={"file": (submit_path.name, f, "application/csv")},
|
| 119 |
timeout=(10, 600),
|
| 120 |
)
|
| 121 |
try:
|