actually we do know how long it will take
This commit is contained in:
parent
d64152587c
commit
0150bbf8dd
|
@ -1,4 +1,3 @@
|
|||
import collections
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
@ -110,7 +109,7 @@ def home():
|
|||
if stats['estimated_wait_sec'] == 0 and stats['stats']['proompts']['processing'] > 0:
|
||||
# There will be a wait if the queue is empty but prompts are processing, but we don't
|
||||
# know how long.
|
||||
estimated_wait_sec = f"> 1 seconds"
|
||||
estimated_wait_sec = f"less than {stats['stats']['average_generation_elapsed_sec']} seconds"
|
||||
else:
|
||||
estimated_wait_sec = f"{stats['estimated_wait_sec']} seconds"
|
||||
|
||||
|
|
Reference in New Issue