Fabrice-TIERCELIN commited on
Commit
4bd05b1
·
verified ·
1 Parent(s): 6e75b7a

Correctly compute time

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -259,9 +259,9 @@ def uncrop(
259
 
260
  end = time.time()
261
  secondes = int(end - start)
262
- minutes = secondes // 60
263
  secondes = secondes - (minutes * 60)
264
- hours = minutes // 60
265
  minutes = minutes - (hours * 60)
266
  return [
267
  output_image,
 
259
 
260
  end = time.time()
261
  secondes = int(end - start)
262
+ minutes = math.floor(secondes / 60)
263
  secondes = secondes - (minutes * 60)
264
+ hours = math.floor(minutes / 60)
265
  minutes = minutes - (hours * 60)
266
  return [
267
  output_image,