Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def rel_time_parse(snip):
|
|
168 |
digits = [c for c in snip if c.isdigit()]
|
169 |
val = 0
|
170 |
if len(digits) > 0:
|
171 |
-
val = int("
|
172 |
else:
|
173 |
if ("hour" in snip and "hours" not in snip) or ("minute" in snip and "minutes" not in snip):
|
174 |
val = 1
|
|
|
168 |
digits = [c for c in snip if c.isdigit()]
|
169 |
val = 0
|
170 |
if len(digits) > 0:
|
171 |
+
val = int("".join(digits))
|
172 |
else:
|
173 |
if ("hour" in snip and "hours" not in snip) or ("minute" in snip and "minutes" not in snip):
|
174 |
val = 1
|