Spaces:
Sleeping
Sleeping
link to dict
Browse files
app.py
CHANGED
@@ -103,9 +103,10 @@ if sentence:
|
|
103 |
for line in ud_output[2:]:
|
104 |
# Each UD line as a table row
|
105 |
cells = line.replace('_', '\\_').replace('|', '|').replace(':', ':').split('\t')
|
106 |
-
cells[2] = "<a href='#'>" + cells[2] + "</a>"
|
107 |
table_md += "| " + " | ".join(cells) + " |\n"
|
108 |
table_md += "</div>" # Close the RTL div
|
|
|
109 |
print(table_md)
|
110 |
|
111 |
# Display the table using a single markdown call
|
|
|
103 |
for line in ud_output[2:]:
|
104 |
# Each UD line as a table row
|
105 |
cells = line.replace('_', '\\_').replace('|', '|').replace(':', ':').split('\t')
|
106 |
+
cells[2] = "<a href='#gsc.q="+cells[2]+"&gsc.tab=1&gsc.sort='>" + cells[2] + "</a>"
|
107 |
table_md += "| " + " | ".join(cells) + " |\n"
|
108 |
table_md += "</div>" # Close the RTL div
|
109 |
+
table_md += "<script async src='https://cse.google.com/cse.js?cx=002406fddcc60435c'></script><div class='gcse-search'></div>"
|
110 |
print(table_md)
|
111 |
|
112 |
# Display the table using a single markdown call
|