Fabrice-TIERCELIN
commited on
Correctly compute time
Browse files
app.py
CHANGED
@@ -137,9 +137,9 @@ def pix2pix(
|
|
137 |
|
138 |
end = time.time()
|
139 |
secondes = int(end - start)
|
140 |
-
minutes = secondes
|
141 |
secondes = secondes - (minutes * 60)
|
142 |
-
hours = minutes
|
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,
|