mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-22 10:10:47 +00:00
sync
This commit is contained in:
parent
e1c2f6b5e6
commit
31926276f7
@ -148,6 +148,7 @@ class LollmsXTTS:
|
|||||||
retries = 0
|
retries = 0
|
||||||
|
|
||||||
while retries < max_retries or max_retries<0:
|
while retries < max_retries or max_retries<0:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get(url)
|
response = requests.get(url)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
@ -160,6 +161,7 @@ class LollmsXTTS:
|
|||||||
|
|
||||||
retries += 1
|
retries += 1
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
|
ASCIIColors.yellow("Waiting ...")
|
||||||
if show_warning:
|
if show_warning:
|
||||||
print("Service did not become available within the given time.")
|
print("Service did not become available within the given time.")
|
||||||
if self.app is not None:
|
if self.app is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user