actually(?) fix timedelta usage

This commit is contained in:
tonydero 2024-08-11 21:19:08 -06:00
parent 0aa1fef6cf
commit 2db03acc60

View File

@ -59,9 +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
rt_min = run_time.minutes
rt_sec = run_time.seconds
put_success("Images finished generating in " + rt_min + "m " + rt_sec + "s", closeable=True)
# rt_min = run_time.minutes
# rt_sec = run_time.seconds
put_success("Images finished generating in " + str(run_time), closeable=True)
def main(): # PyWebIO application function
put_text("Prompt:", inline=True)