Spaces:
Running
Running
umyuu
commited on
Commit
·
da9eda8
1
Parent(s):
749b06e
パッケージ管理をuvに変更しました。
Browse files- .python-version +1 -0
- 01-installation.bat +11 -7
- pyproject.toml +12 -0
- requirements.txt +4 -4
- run.bat +2 -2
- uv.lock +0 -0
.python-version
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
3.10
|
01-installation.bat
CHANGED
@@ -1,10 +1,14 @@
|
|
1 |
-
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
|
6 |
-
|
|
|
|
|
7 |
|
8 |
-
|
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.
|
2 |
-
gradio_client==1.
|
3 |
-
opencv-python==4.
|
4 |
-
opencv-contrib-python==4.
|
|
|
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 |
-
|
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
|
|