Spaces:
Running
Running
Fabrice-TIERCELIN
commited on
Commit
•
13fae1e
1
Parent(s):
6f86bde
Correctly compute time
Browse files
app.py
CHANGED
@@ -174,9 +174,9 @@ def inpaint(
|
|
174 |
|
175 |
end = time.time()
|
176 |
secondes = int(end - start)
|
177 |
-
minutes = secondes
|
178 |
secondes = secondes - (minutes * 60)
|
179 |
-
hours = minutes
|
180 |
minutes = minutes - (hours * 60)
|
181 |
return [
|
182 |
output_image,
|
|
|
174 |
|
175 |
end = time.time()
|
176 |
secondes = int(end - start)
|
177 |
+
minutes = math.floor(secondes / 60)
|
178 |
secondes = secondes - (minutes * 60)
|
179 |
+
hours = math.floor(minutes / 60)
|
180 |
minutes = minutes - (hours * 60)
|
181 |
return [
|
182 |
output_image,
|