Skip to content

Commit

Permalink
fix: do not overwrite $GRADIO_SERVER_PORT if it is already set (lllya…
Browse files Browse the repository at this point in the history
  • Loading branch information
rsl8 authored and mashb1t committed Feb 10, 2024
1 parent b7715b0 commit e4929a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
os.environ["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "0.0"
os.environ["GRADIO_SERVER_PORT"] = "7865"
if "GRADIO_SERVER_PORT" not in os.environ:
os.environ["GRADIO_SERVER_PORT"] = "7865"

ssl._create_default_https_context = ssl._create_unverified_context

Expand Down

0 comments on commit e4929a9

Please sign in to comment.