mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
fixes error when not specifying tunnel id (#3606)
This commit is contained in:
parent
bdb6eb5734
commit
a954b3e7de
@ -99,7 +99,10 @@ def _start_cloudflared(port: int, tunnel_id: str, max_attempts: int = 3, on_star
|
|||||||
|
|
||||||
for _ in range(max_attempts):
|
for _ in range(max_attempts):
|
||||||
try:
|
try:
|
||||||
|
if tunnel_id is not None:
|
||||||
public_url = _run_cloudflared(port, port + 1, tunnel_id=tunnel_id)
|
public_url = _run_cloudflared(port, port + 1, tunnel_id=tunnel_id)
|
||||||
|
else:
|
||||||
|
public_url = _run_cloudflared(port, port + 1)
|
||||||
|
|
||||||
if on_start:
|
if on_start:
|
||||||
on_start(public_url)
|
on_start(public_url)
|
||||||
|
Loading…
Reference in New Issue
Block a user