Improvements to documentation (#606)

This commit is contained in:
Richard Guo
2023-05-16 15:29:27 -04:00
committed by GitHub
parent d729a4435f
commit 7c03bacc19
4 changed files with 8 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ Python only API for running all GPT4All models.
import json
import os
from pathlib import Path
import time
from typing import Dict, List
import requests
@@ -148,6 +149,8 @@ class GPT4All():
raise RuntimeError(
"An error occurred during download. Downloaded file may not work."
)
# Sleep for a little bit so OS can remove file lock
time.sleep(2)
print("Model downloaded at: " + download_path)
return download_path