Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,10 +223,10 @@ for word in textnum.split():
|
|
| 223 |
lastscale = True
|
| 224 |
elif word in units:
|
| 225 |
lastunit = True
|
| 226 |
-
if onnumber:
|
| 227 |
-
|
| 228 |
|
| 229 |
-
return curstring
|
| 230 |
|
| 231 |
# Convert sentence to transcript using Soundex
|
| 232 |
def sentence_to_transcript(sentence, word_to_code_map):
|
|
|
|
| 223 |
lastscale = True
|
| 224 |
elif word in units:
|
| 225 |
lastunit = True
|
| 226 |
+
if onnumber:
|
| 227 |
+
curstring += repr(result + current)
|
| 228 |
|
| 229 |
+
return curstring
|
| 230 |
|
| 231 |
# Convert sentence to transcript using Soundex
|
| 232 |
def sentence_to_transcript(sentence, word_to_code_map):
|