bot/bozenka/generative/gpt4all/__init__.py

13 lines
294 B
Python

import os
def check(model_filename: str) -> bool:
"""
Checking & downloading our gpt4all models
Returns True if it's already downloaded
Returns False if it's not downloaded
:param model_filename:
:return:
"""
return os.path.exists("models\\" + model_filename)