ONNX
AliceJohnson commited on
Commit
6f755c5
·
1 Parent(s): 956c9a7

Modefied code

Browse files
Files changed (1) hide show
  1. darwinai.py +5 -0
darwinai.py CHANGED
@@ -41,6 +41,11 @@ def flip_money(m):
41
  return f'{b} {bill}{s} and {c} {coins}'
42
 
43
  def point_num(num):
 
 
 
 
 
44
  a, b = num.group().split('.')
45
  return ' point '.join([a, ' '.join(b)])
46
 
 
41
  return f'{b} {bill}{s} and {c} {coins}'
42
 
43
  def point_num(num):
44
+ temp_storage = []
45
+ for char in str(num.group()):
46
+ if char.isdigit() or char == '.':
47
+ temp_storage.append(char)
48
+ intermediate_result = ''.join(temp_storage)
49
  a, b = num.group().split('.')
50
  return ' point '.join([a, ' '.join(b)])
51