Spaces:
Sleeping
Sleeping
link to dict
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ if sentence:
|
|
105 |
for line in ud_output[2:]:
|
106 |
# Each UD line as a table row
|
107 |
cells = line.replace('_', '\\_').replace('|', '|').replace(':', ':').split('\t')
|
108 |
-
cells[2] = "<iframe src='https://freeali.se/freealise/translate/loader.htm?q="+cells[2]+"' width='128' height='64'></iframe><a href='https://freeali.se/freealise/translate/index.htm#gsc.q="+cells[2]+"&gsc.tab=1&gsc.sort=' target='dict'>" + cells[2] + "</a>"
|
109 |
table_md += "| " + " | ".join(cells) + " |\n"
|
110 |
table_md += "</div>" # Close the RTL div
|
111 |
print(table_md)
|
|
|
105 |
for line in ud_output[2:]:
|
106 |
# Each UD line as a table row
|
107 |
cells = line.replace('_', '\\_').replace('|', '|').replace(':', ':').split('\t')
|
108 |
+
cells[2] = "<iframe src='https://freeali.se/freealise/translate/index.htm#gsc.q="+cells[2]+"&gsc.tab=1&gsc.sort=' width='128' height='64'></iframe><br/><iframe src='https://freeali.se/freealise/translate/loader.htm?q="+cells[2]+"' width='128' height='64'></iframe><a href='https://freeali.se/freealise/translate/index.htm#gsc.q="+cells[2]+"&gsc.tab=1&gsc.sort=' target='dict'>" + cells[2] + "</a>"
|
109 |
table_md += "| " + " | ".join(cells) + " |\n"
|
110 |
table_md += "</div>" # Close the RTL div
|
111 |
print(table_md)
|