Spaces:
Sleeping
Sleeping
Update utils/mistral.py
Browse files- utils/mistral.py +3 -1
utils/mistral.py
CHANGED
@@ -391,8 +391,10 @@ def normalize_data(value):
|
|
391 |
"""Replace empty lists with None and convert strings to lists."""
|
392 |
if value == []:
|
393 |
return None
|
394 |
-
elif isinstance(value, str):
|
395 |
return [value]
|
|
|
|
|
396 |
return value
|
397 |
|
398 |
def process_resume_data(file_path):
|
|
|
391 |
"""Replace empty lists with None and convert strings to lists."""
|
392 |
if value == []:
|
393 |
return None
|
394 |
+
elif isinstance(value, str): # check for str
|
395 |
return [value]
|
396 |
+
elif isinstance(value, (float, int)): # Check for both float and int
|
397 |
+
return [str(value)]
|
398 |
return value
|
399 |
|
400 |
def process_resume_data(file_path):
|