Spaces:
Runtime error
Runtime error
Update api/routers/processing.py
Browse files
api/routers/processing.py
CHANGED
|
@@ -90,8 +90,7 @@ async def upload_and_process(
|
|
| 90 |
# Validar e contar registros
|
| 91 |
total_records = 0
|
| 92 |
try:
|
| 93 |
-
for line_num, line in enumerate(content.decode('utf-8').strip().split('
|
| 94 |
-
'), 1):
|
| 95 |
if not line.strip():
|
| 96 |
continue
|
| 97 |
try:
|
|
|
|
| 90 |
# Validar e contar registros
|
| 91 |
total_records = 0
|
| 92 |
try:
|
| 93 |
+
for line_num, line in enumerate(content.decode('utf-8').strip().split('\n'), 1):
|
|
|
|
| 94 |
if not line.strip():
|
| 95 |
continue
|
| 96 |
try:
|