From b09fc793ccdeadb389f66b6cce46a0f0a42cfd3e Mon Sep 17 00:00:00 2001 From: lkwfive Date: Fri, 19 May 2023 10:50:37 +0800 Subject: [PATCH] Update run_gui.ps1 Add host and port parameters --- run_gui.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/run_gui.ps1 b/run_gui.ps1 index 39ac7a94..4a7ea8ee 100644 --- a/run_gui.ps1 +++ b/run_gui.ps1 @@ -1,6 +1,14 @@ +param( + [Parameter(Mandatory=$false)] + [string]$hostname = "127.0.0.1", + + [Parameter(Mandatory=$false)] + [string]$port = "28000" +) + .\venv\Scripts\activate $Env:HF_HOME = "huggingface" $Env:PYTHONUTF8 = "1" -python gui.py \ No newline at end of file +python gui.py $hostname $port