umyuu commited on
Commit
da9eda8
·
1 Parent(s): 749b06e

パッケージ管理をuvに変更しました。

Browse files
Files changed (6) hide show
  1. .python-version +1 -0
  2. 01-installation.bat +11 -7
  3. pyproject.toml +12 -0
  4. requirements.txt +4 -4
  5. run.bat +2 -2
  6. uv.lock +0 -0
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.10
01-installation.bat CHANGED
@@ -1,10 +1,14 @@
1
- @echo on
 
 
 
2
 
3
- cd %~dp0
 
4
 
5
- python -m venv venv
6
- call venv\Scripts\activate
 
 
7
 
8
- pip install -r requirements.txt
9
-
10
- TIMEOUT /T 10
 
1
+ REM uv�̃L���b�V���p�X�̕ύX�iSSD�œK���j
2
+ REM �ʏ�̃L���b�V���ꏊ��SSD��̎w�肵���p�X�iK:\uv_cache�j�Ƀ����N���邱�ƂŁA
3
+ REM �L���b�V���̓ǂݏ������x���œK�����܂��B�����N���K�v�ȏꍇ�̂ݗL���ł��B
4
+ REM mklink /d %LOCALAPPDATA%\uv\cache K:\uv_cache
5
 
6
+ REM pip�o�R��uv���C���X�g�[��
7
+ pip install uv
8
 
9
+ REM uv�̈ˑ��֌W�𓯊�
10
+ REM `uv sync`���g���āA�v���W�F�N�g�̈ˑ��֌W��`pyproject.toml`�����`uv lock`�t�@�C���Ɋ�Â��ăC���X�g�[���܂��͍X�V���܂��B
11
+ REM ����ɂ��A�‹�����������A�K�v�ȃ��C�u�������C���X�g�[������܂��B
12
+ uv sync --reinstall
13
 
14
+ TIMEOUT /T 10
 
 
pyproject.toml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "saliencymapdemo"
3
+ version = "0.0.13"
4
+ description = "Add your description here"
5
+ readme = "README.md"
6
+ requires-python = ">=3.10"
7
+ dependencies = [
8
+ "gradio>=5.13.1",
9
+ "gradio-client>=1.6.0",
10
+ "opencv-contrib-python>=4.11.0.86",
11
+ "opencv-python>=4.11.0.86",
12
+ ]
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio==5.3.0
2
- gradio_client==1.4.2
3
- opencv-python==4.10.0.84
4
- opencv-contrib-python==4.10.0.84
 
1
+ gradio==5.13.1
2
+ gradio_client==1.6.0
3
+ opencv-python==4.11.0.86
4
+ opencv-contrib-python==4.11.0.86
run.bat CHANGED
@@ -1,7 +1,7 @@
1
  @echo on
2
 
3
  cd %~dp0
4
- call venv\Scripts\activate
5
- python app.py --server_port 9999
6
 
7
  TIMEOUT /T 10
 
1
  @echo on
2
 
3
  cd %~dp0
4
+ call .venv\Scripts\activate
5
+ uv run app.py --server_port 9999
6
 
7
  TIMEOUT /T 10
uv.lock ADDED
The diff for this file is too large to render. See raw diff