fix timedelta usage
This commit is contained in:
parent
27cff1b27b
commit
0aa1fef6cf
@ -59,7 +59,9 @@ def btn_click(btn_val):
|
||||
flux_run(pin.pin.prompt, 720, 1280, 4, 4, 128, dirpath)
|
||||
stop_time = datetime.now()
|
||||
run_time = stop_time - start_time
|
||||
put_success("Images finished generating in" + run_time.strftime("%M:%S"), closeable=True)
|
||||
rt_min = run_time.minutes
|
||||
rt_sec = run_time.seconds
|
||||
put_success("Images finished generating in " + rt_min + "m " + rt_sec + "s", closeable=True)
|
||||
|
||||
def main(): # PyWebIO application function
|
||||
put_text("Prompt:", inline=True)
|
||||
|
Loading…
Reference in New Issue
Block a user