Update app.py
Browse files
app.py
CHANGED
@@ -49,10 +49,12 @@ def create_noun_table(lemma, forms):
|
|
49 |
for form in forms:
|
50 |
ppos = form['PPOS'].lower() # Normalize to lowercase
|
51 |
word = form['word']
|
52 |
-
key = ppos.split('
|
53 |
if key in table_data:
|
54 |
table_data[key] = word
|
55 |
|
|
|
|
|
56 |
table = f"""
|
57 |
<table border="1">
|
58 |
<thead>
|
@@ -118,4 +120,4 @@ iface = gr.Interface(
|
|
118 |
)
|
119 |
|
120 |
if __name__ == "__main__":
|
121 |
-
iface.launch()
|
|
|
49 |
for form in forms:
|
50 |
ppos = form['PPOS'].lower() # Normalize to lowercase
|
51 |
word = form['word']
|
52 |
+
key = ppos.split('==')[0] # Extracting relevant part of PPOS with the full form for binding info
|
53 |
if key in table_data:
|
54 |
table_data[key] = word
|
55 |
|
56 |
+
print(f"Final table data for {lemma}: {table_data}") # Debugging output
|
57 |
+
|
58 |
table = f"""
|
59 |
<table border="1">
|
60 |
<thead>
|
|
|
120 |
)
|
121 |
|
122 |
if __name__ == "__main__":
|
123 |
+
iface.launch(share=True)
|