Fabrice-TIERCELIN commited on
Commit
f172e70
·
verified ·
1 Parent(s): 4a0ddbb

Correctly compute time

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,9 +137,9 @@ def pix2pix(
137
 
138
  end = time.time()
139
  secondes = int(end - start)
140
- minutes = secondes // 60
141
  secondes = secondes - (minutes * 60)
142
- hours = minutes // 60
143
  minutes = minutes - (hours * 60)
144
  return [
145
  output_image,
 
137
 
138
  end = time.time()
139
  secondes = int(end - start)
140
+ minutes = math.floor(secondes / 60)
141
  secondes = secondes - (minutes * 60)
142
+ hours = math.floor(minutes / 60)
143
  minutes = minutes - (hours * 60)
144
  return [
145
  output_image,