unijoh commited on
Commit
645b14b
·
verified ·
1 Parent(s): 4095e7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -41,9 +41,10 @@ def create_noun_table(lemma, forms):
41
  for form in forms:
42
  ppos = form['PPOS']
43
  word = form['word']
44
- if ppos[1:5] in table_data:
45
- table_data[ppos[1:5]] = word
46
-
 
47
  # Create the HTML table
48
  table = f"""
49
  <table border="1">
 
41
  for form in forms:
42
  ppos = form['PPOS']
43
  word = form['word']
44
+ key = ppos[1:5] # Extracting relevant part of PPOS
45
+ if key in table_data:
46
+ table_data[key] = word
47
+
48
  # Create the HTML table
49
  table = f"""
50
  <table border="1">