Spaces:
Running
on
L4
Running
on
L4
tricktreat
commited on
Commit
·
2da68ac
1
Parent(s):
16c92c7
reduce waiting time
Browse files- awesome_chat.py +1 -1
awesome_chat.py
CHANGED
@@ -908,7 +908,7 @@ def chat_huggingface(messages, openaikey = None, huggingfacetoken = None, return
|
|
908 |
if num_threads == len(threads):
|
909 |
time.sleep(0.5)
|
910 |
retry += 1
|
911 |
-
if retry >
|
912 |
logger.debug("User has waited too long, Loop break.")
|
913 |
break
|
914 |
if len(tasks) == 0:
|
|
|
908 |
if num_threads == len(threads):
|
909 |
time.sleep(0.5)
|
910 |
retry += 1
|
911 |
+
if retry > 80:
|
912 |
logger.debug("User has waited too long, Loop break.")
|
913 |
break
|
914 |
if len(tasks) == 0:
|