Spaces:
Running
Running
Correctly compute time
Browse files
app.py
CHANGED
@@ -259,9 +259,9 @@ def uncrop(
|
|
259 |
|
260 |
end = time.time()
|
261 |
secondes = int(end - start)
|
262 |
-
minutes = secondes
|
263 |
secondes = secondes - (minutes * 60)
|
264 |
-
hours = minutes
|
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,
|