Spaces:
Runtime error
Runtime error
Commit
·
d2eb160
1
Parent(s):
48b01c9
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ class ValidationException(Exception):
|
|
| 6 |
def string_to_int(size_str: str):
|
| 7 |
mappings = {'M': 10**6, 'B': 10**9, 'T': 10**12}
|
| 8 |
suffix = size_str.upper()[-1]
|
| 9 |
-
size = size_str
|
| 10 |
try:
|
| 11 |
size = float(size)
|
| 12 |
except ValueError:
|
|
|
|
| 6 |
def string_to_int(size_str: str):
|
| 7 |
mappings = {'M': 10**6, 'B': 10**9, 'T': 10**12}
|
| 8 |
suffix = size_str.upper()[-1]
|
| 9 |
+
size = size_str[:-1]
|
| 10 |
try:
|
| 11 |
size = float(size)
|
| 12 |
except ValueError:
|