Skip to content

Commit

Permalink
fix downloading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Aug 30, 2024
1 parent 6eef9e8 commit ed2733a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/DownloadModels.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def downloadModel(self, modelFile: str = None, downloadModelPath: str = None):
)
title = "Downloading: " + modelFile
DownloadProgressPopup(link=url, title=title, downloadLocation=downloadModelPath)
print("Done")
if "tar.gz" in self.downloadModelFile:
print("Extracting File")
extractTarGZ(self.downloadModelPath)
Expand Down
2 changes: 1 addition & 1 deletion src/ui/QTcustom.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def run(self):

totalSize = 0
with open(self.downloadLocation, "wb") as f:
chunk_size = 128
chunk_size = 1024
for chunk in response.iter_content(chunk_size=chunk_size):
f.write(chunk)
totalSize += chunk_size
Expand Down

0 comments on commit ed2733a

Please sign in to comment.