unijoh commited on
Commit
c78e3ff
·
verified ·
1 Parent(s): ae9cb5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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('=')[0] # Extracting relevant part of PPOS
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)