Spaces:
Runtime error
Runtime error
Correctly compute time
Browse files
app.py
CHANGED
|
@@ -163,9 +163,9 @@ def redraw(
|
|
| 163 |
|
| 164 |
end = time.time()
|
| 165 |
secondes = int(end - start)
|
| 166 |
-
minutes = secondes
|
| 167 |
secondes = secondes - (minutes * 60)
|
| 168 |
-
hours = minutes
|
| 169 |
minutes = minutes - (hours * 60)
|
| 170 |
return [
|
| 171 |
output_image,
|
|
|
|
| 163 |
|
| 164 |
end = time.time()
|
| 165 |
secondes = int(end - start)
|
| 166 |
+
minutes = math.floor(secondes / 60)
|
| 167 |
secondes = secondes - (minutes * 60)
|
| 168 |
+
hours = math.floor(minutes / 60)
|
| 169 |
minutes = minutes - (hours * 60)
|
| 170 |
return [
|
| 171 |
output_image,
|