Pārlūkot izejas kodu

Fix dependencies (#283)

* Add Windows Setup Help

* Optimize documents/bootscripts for Windows User

* Correct some description

* Fix dependecies
spicysama 1 gadu atpakaļ
vecāks
revīzija
06fbf45674
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 0
      pyproject.toml
  2. 1 2
      start.bat

+ 1 - 0
pyproject.toml

@@ -13,6 +13,7 @@ classifiers = [
     "Programming Language :: Python :: 3",
     "Programming Language :: Python :: 3",
 ]
 ]
 dependencies = [
 dependencies = [
+    "numpy<=1.26.4",
     "transformers>=4.35.2",
     "transformers>=4.35.2",
     "datasets>=2.14.5",
     "datasets>=2.14.5",
     "lightning>=2.1.0",
     "lightning>=2.1.0",

+ 1 - 2
start.bat

@@ -7,8 +7,6 @@ set PYTHON_CMD=%cd%\fishenv\env\python
 set API_FLAG_PATH=%~dp0API_FLAGS.txt
 set API_FLAG_PATH=%~dp0API_FLAGS.txt
 
 
 
 
-%PYTHON_CMD% .\tools\download_models.py
-
 setlocal enabledelayedexpansion
 setlocal enabledelayedexpansion
 
 
 set "HF_ENDPOINT=https://huggingface.co"
 set "HF_ENDPOINT=https://huggingface.co"
@@ -19,6 +17,7 @@ if "%USE_MIRROR%" == "true" (
 )
 )
 echo "HF_ENDPOINT: !HF_ENDPOINT!"
 echo "HF_ENDPOINT: !HF_ENDPOINT!"
 echo "NO_PROXY: !no_proxy!"
 echo "NO_PROXY: !no_proxy!"
+%PYTHON_CMD% .\tools\download_models.py
 
 
 set "API_FLAGS="
 set "API_FLAGS="
 set "flags="
 set "flags="