Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,8 @@ def parens_to_angles(s):
|
|
46 |
return s.replace('(', '«').replace(')', '»')
|
47 |
|
48 |
def split_num(num):
|
49 |
-
|
|
|
50 |
a, b = num.split('.')
|
51 |
b = ' '.join(b)
|
52 |
return f'{a} point {b}'
|
|
|
46 |
return s.replace('(', '«').replace(')', '»')
|
47 |
|
48 |
def split_num(num):
|
49 |
+
num = num.group()
|
50 |
+
if '.' in num:
|
51 |
a, b = num.split('.')
|
52 |
b = ' '.join(b)
|
53 |
return f'{a} point {b}'
|