mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Add a "CMD_FLAGS" variable
This commit is contained in:
parent
b8cfc20e58
commit
d7d3f7f31c
5
webui.py
5
webui.py
@ -8,6 +8,9 @@ import sys
|
||||
|
||||
script_dir = os.getcwd()
|
||||
|
||||
# Use this to set your command-line flags. For the full list, see:
|
||||
# https://github.com/oobabooga/text-generation-webui/#starting-the-web-ui
|
||||
CMD_FLAGS = '--chat --model-menu'
|
||||
|
||||
def run_cmd(cmd, assert_success=False, environment=False, capture_output=False, env=None):
|
||||
# Use the conda environment
|
||||
@ -164,7 +167,7 @@ def download_model():
|
||||
|
||||
def run_model():
|
||||
os.chdir("text-generation-webui")
|
||||
run_cmd("python server.py --chat --model-menu", environment=True) # put your flags here!
|
||||
run_cmd(f"python server.py {CMD_FLAGS}", environment=True) # put your flags here!
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user