Spaces:
Running
on
Zero
Running
on
Zero
DongfuJiang
commited on
Commit
·
ea4fcea
1
Parent(s):
488bb70
update
Browse files- serve_local.sh +4 -3
serve_local.sh
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
-
|
|
|
2 |
export LOG_SERVER_SUBDOMAIN=""
|
3 |
export LOGDIR="tmp_log/"
|
4 |
-
export SERVER_PORT=
|
5 |
|
6 |
# start log server
|
7 |
-
uvicorn serve.log_server:app --reload --port
|
8 |
PID1=$!
|
9 |
# start gradio server
|
10 |
python app.py &
|
|
|
1 |
+
LOG_SERVER_PORT=9929
|
2 |
+
export LOG_SERVER="http://0.0.0.0:${LOG_SERVER_PORT}"
|
3 |
export LOG_SERVER_SUBDOMAIN=""
|
4 |
export LOGDIR="tmp_log/"
|
5 |
+
export SERVER_PORT=10201 # gradio server port
|
6 |
|
7 |
# start log server
|
8 |
+
uvicorn serve.log_server:app --reload --port ${LOG_SERVER_PORT} --host 0.0.0.0 &
|
9 |
PID1=$!
|
10 |
# start gradio server
|
11 |
python app.py &
|