changed requirements

This commit is contained in:
saloui 2023-06-29 11:33:09 +02:00
parent 5d71c4dff8
commit 4201168c21
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ from lollms.paths import LollmsPaths
from lollms.config import BaseConfig
#from lollms.binding import LLMBinding
import shutil
import urllib
import urllib.request as rq
from tqdm import tqdm
from pathlib import Path
@ -160,7 +160,7 @@ class LOLLMSConfig(BaseConfig):
progress_bar.update(block_size)
# Download file from URL to folder
try:
urllib.request.urlretrieve(url, folder_path / url.split("/")[-1], reporthook=report_progress if callback is None else callback)
rq.urlretrieve(url, folder_path / url.split("/")[-1], reporthook=report_progress if callback is None else callback)
print("File downloaded successfully!")
except Exception as e:
print("Error downloading file:", e)

View File

@ -26,7 +26,7 @@ def get_all_files(path):
setuptools.setup(
name="lollms",
version="2.0.27",
version="2.0.30",
author="Saifeddine ALOUI",
author_email="aloui.saifeddine@gmail.com",
description="A python library for AI personality definition",
@ -45,7 +45,7 @@ setuptools.setup(
},
extras_require={"dev": requirements_dev},
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],