Update ecoset.py
Browse files
ecoset.py
CHANGED
@@ -154,13 +154,8 @@ class Ecoset(datasets.GeneratorBasedBuilder):
|
|
154 |
wget_command = f"wget --no-check-certificate {source_url} -O {zip_file_path}"
|
155 |
subprocess.run(wget_command, shell=True)
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
if response.status_code == 200:
|
160 |
-
with open(zip_file_path, 'wb') as file:
|
161 |
-
for chunk in response.iter_content(1024):
|
162 |
-
file.write(chunk)
|
163 |
-
print(f"Downloaded {filename}")
|
164 |
# unzip using platform-based subprocess
|
165 |
if platform.system() in ("Linux", "Darwin"):
|
166 |
#subprocess.call(["unzip", "-n", "-P", password.encode("ascii"), "-o", zip_path, "-d", target_dir], shell=False)
|
|
|
154 |
wget_command = f"wget --no-check-certificate {source_url} -O {zip_file_path}"
|
155 |
subprocess.run(wget_command, shell=True)
|
156 |
|
157 |
+
|
158 |
+
print(f"Downloaded {filename}")
|
|
|
|
|
|
|
|
|
|
|
159 |
# unzip using platform-based subprocess
|
160 |
if platform.system() in ("Linux", "Darwin"):
|
161 |
#subprocess.call(["unzip", "-n", "-P", password.encode("ascii"), "-o", zip_path, "-d", target_dir], shell=False)
|