unijoh commited on
Commit
8f7bb50
·
verified ·
1 Parent(s): 34202a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def load_data():
12
  if len(row) < 5:
13
  print(f"Skipping problematic line: {row}")
14
  continue
15
- orto, ppos, phon1, phon2, comm, *pronunciations = row
16
  if orto == '---':
17
  current_lemma = None
18
  elif current_lemma is None:
 
12
  if len(row) < 5:
13
  print(f"Skipping problematic line: {row}")
14
  continue
15
+ orto, ppos, phon1, phon2, comm, *pronunciations = map(lambda x: x if isinstance(x, str) else "", row)
16
  if orto == '---':
17
  current_lemma = None
18
  elif current_lemma is None: