File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ __pycache__/
9
9
test-values.y [a ]ml
10
10
chart /web-app /settings.yml
11
11
gradio-client-test.py
12
- venv * /
12
+ ** venv * /
13
+
13
14
14
15
# Helm chart stuff
15
16
chart /Chart.lock
Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ if not run_ui_locally:
25
25
k8s_resource ("chart-api" , port_forwards = "8081:8000" )
26
26
27
27
if run_ui_locally :
28
+ venv_name = "tilt-dev-venv"
28
29
requirements = "images/ui-base/requirements.txt"
29
30
# Run gradio app locally with hot-reloading
30
31
local_resource (
31
32
name = "gradio-app" ,
32
33
deps = requirements ,
33
34
serve_cmd = "" .join ([
34
- "source venv/bin/activate" ,
35
+ "([[ -d {} ]] || python3 -m venv {})" .format (venv_name , venv_name ),
36
+ "&& source {}/bin/activate" .format (venv_name ),
35
37
"&& pip install -r {}" .format (requirements ),
36
38
"&& cd chart/web-app" ,
37
39
"&& gradio app.py --demo-name app"
You can’t perform that action at this time.
0 commit comments