Skip to content

Commit

Permalink
style: Format code using black
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulooh007 committed Oct 8, 2023
1 parent 2f9a1ff commit 7716c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions laser_encoders/download_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def download(self, filename: str):
url = os.path.join(self.base_url, filename)

local_file_path = os.path.join(self.model_dir, filename)
temp_file_path = os.path.join('/tmp', filename)
temp_file_path = os.path.join("/tmp", filename)

if os.path.exists(local_file_path):
logger.info(f" - {filename} already downloaded")
Expand All @@ -61,7 +61,7 @@ def download(self, filename: str):
response = requests.get(url, stream=True)
total_size = int(response.headers.get("Content-Length", 0))
progress_bar = tqdm(total=total_size, unit_scale=True, unit="B")

# Download to /tmp first
with open(temp_file_path, "wb") as f:
for chunk in response.iter_content(chunk_size=1024):
Expand Down

0 comments on commit 7716c11

Please sign in to comment.