Spaces:
Running
Running
umyuu
commited on
Commit
·
d4cfaef
1
Parent(s):
da9eda8
un環境でもデバック実行出来るようにlaunch.jsonを修正しました。
Browse files- .vscode/launch.json +16 -14
- 01-installation.bat +1 -1
- pyproject.toml +1 -1
- run.bat +1 -1
- scripts/run_hot_reload.bat +2 -2
- uv.lock +1 -1
.vscode/launch.json
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
{
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
16 |
}
|
|
|
1 |
{
|
2 |
+
// IntelliSense を使用して利用可能な属性を学べます。
|
3 |
+
// 既存の属性の説明をホバーして表示します。
|
4 |
+
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
|
5 |
+
"version": "0.2.0",
|
6 |
+
"configurations": [
|
7 |
+
{
|
8 |
+
"name": "app.py",
|
9 |
+
"type": "debugpy",
|
10 |
+
"request": "launch",
|
11 |
+
"program": "${workspaceFolder}/app.py",
|
12 |
+
"console": "integratedTerminal",
|
13 |
+
"python": "${workspaceFolder}/.venv/Scripts/python.exe",
|
14 |
+
"args": "${command:pickArgs}",
|
15 |
+
"justMyCode": true
|
16 |
+
}
|
17 |
+
]
|
18 |
}
|
01-installation.bat
CHANGED
@@ -9,6 +9,6 @@ pip install uv
|
|
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
|
13 |
|
14 |
TIMEOUT /T 10
|
|
|
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
|
13 |
|
14 |
TIMEOUT /T 10
|
pyproject.toml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
[project]
|
2 |
name = "saliencymapdemo"
|
3 |
version = "0.0.13"
|
4 |
-
description = "
|
5 |
readme = "README.md"
|
6 |
requires-python = ">=3.10"
|
7 |
dependencies = [
|
|
|
1 |
[project]
|
2 |
name = "saliencymapdemo"
|
3 |
version = "0.0.13"
|
4 |
+
description = "SaliencyMapDemo"
|
5 |
readme = "README.md"
|
6 |
requires-python = ">=3.10"
|
7 |
dependencies = [
|
run.bat
CHANGED
@@ -2,6 +2,6 @@
|
|
2 |
|
3 |
cd %~dp0
|
4 |
call .venv\Scripts\activate
|
5 |
-
uv run app.py --server_port 9999
|
6 |
|
7 |
TIMEOUT /T 10
|
|
|
2 |
|
3 |
cd %~dp0
|
4 |
call .venv\Scripts\activate
|
5 |
+
uv run --verbose Python app.py --server_port 9999
|
6 |
|
7 |
TIMEOUT /T 10
|
scripts/run_hot_reload.bat
CHANGED
@@ -3,7 +3,7 @@ REM Gradioのオートリロード用のスクリプトです。
|
|
3 |
|
4 |
cd %~dp0
|
5 |
cd ..
|
6 |
-
call venv\Scripts\activate
|
7 |
-
gradio app.py
|
8 |
|
9 |
TIMEOUT /T 10
|
|
|
3 |
|
4 |
cd %~dp0
|
5 |
cd ..
|
6 |
+
call .venv\Scripts\activate
|
7 |
+
uv run gradio app.py
|
8 |
|
9 |
TIMEOUT /T 10
|
uv.lock
CHANGED
@@ -948,7 +948,7 @@ wheels = [
|
|
948 |
|
949 |
[[package]]
|
950 |
name = "saliencymapdemo"
|
951 |
-
version = "0.
|
952 |
source = { virtual = "." }
|
953 |
dependencies = [
|
954 |
{ name = "gradio" },
|
|
|
948 |
|
949 |
[[package]]
|
950 |
name = "saliencymapdemo"
|
951 |
+
version = "0.0.13"
|
952 |
source = { virtual = "." }
|
953 |
dependencies = [
|
954 |
{ name = "gradio" },
|