Jhjoon05 commited on
Commit
29c84ca
1 Parent(s): 56bbc55

better file name

Browse files
Files changed (2) hide show
  1. start-webui.bat +18 -0
  2. start-webui.sh +12 -0
start-webui.bat ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+
3
+ goto :activate_venv
4
+
5
+ :launch
6
+ %PYTHON% app.py %*
7
+ pause
8
+
9
+ :activate_venv
10
+ set PYTHON="%~dp0\venv\Scripts\Python.exe"
11
+ echo venv %PYTHON%
12
+ goto :launch
13
+
14
+ :endofscript
15
+
16
+ echo.
17
+ echo Launch unsuccessful. Exiting.
18
+ pause
start-webui.sh ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ source venv/bin/activate
4
+
5
+ PYTHON="venv/bin/python"
6
+ echo "venv ${PYTHON}"
7
+ echo ""
8
+
9
+ python app.py $*
10
+
11
+ deactivate
12
+