vkapoor commited on
Commit
d27aea0
·
1 Parent(s): 21d2cfa

Update ecoset.py

Browse files
Files changed (1) hide show
  1. ecoset.py +2 -7
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
- # Download the zip file.
158
- response = requests.get(source_url, stream=True)
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)