Skip to content

Commit

Permalink
Model download issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vadootvpeer committed May 28, 2023
1 parent 8ab959a commit 09c4399
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/privateGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def download_and_save():
filename = 'ggml-gpt4all-j-v1.3-groovy.bin' # Specify the name for the downloaded file
models_folder = 'models' # Specify the name of the folder inside the Flask app root

if not os.path.exists(models_folder):
os.makedirs(models_folder)
response = requests.get(url,stream=True)
total_size = int(response.headers.get('content-length', 0))
bytes_downloaded = 0
Expand Down

0 comments on commit 09c4399

Please sign in to comment.