fix: do not overwrite $GRADIO_SERVER_PORT if it is already set (#1921)
This commit is contained in:
parent
b7715b0a0c
commit
e4929a9ed7
|
|
@ -10,6 +10,7 @@ os.chdir(root)
|
|||
|
||||
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
|
||||
os.environ["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "0.0"
|
||||
if "GRADIO_SERVER_PORT" not in os.environ:
|
||||
os.environ["GRADIO_SERVER_PORT"] = "7865"
|
||||
|
||||
ssl._create_default_https_context = ssl._create_unverified_context
|
||||
|
|
|
|||
Loading…
Reference in New Issue