Update app.py
Browse files
app.py
CHANGED
|
@@ -887,34 +887,7 @@ def create_interface():
|
|
| 887 |
</li>
|
| 888 |
</ul>
|
| 889 |
</div>
|
| 890 |
-
|
| 891 |
-
<It'll mostly render, but there are real problems — it won't come out the way you want, and one part is broken. Let me walk you through what's wrong, then give you a clean version.
|
| 892 |
-
|
| 893 |
-
The issues:
|
| 894 |
-
|
| 895 |
-
1. The links have no visible text. Your first two <a> tags are empty — the text sits outside them:
|
| 896 |
-
|
| 897 |
-
html
|
| 898 |
-
<a href="...crowdsourced-data-tools" target="_blank" ...></a>and <a href="...">
|
| 899 |
-
|
| 900 |
-
Everything between > and </a> is what shows as a clickable link. Since there's nothing there, you get invisible/zero-width links, and the words ("Main EKCC project repository", the citation) render as plain non-clickable text. So nothing will actually be clickable where you expect.
|
| 901 |
-
|
| 902 |
-
2. A broken attribute. This part is malformed:
|
| 903 |
-
|
| 904 |
-
html
|
| 905 |
-
href="https://doi.org/10.48550/arXiv.2607.09324target"="_blank"
|
| 906 |
|
| 907 |
-
The target got stuck onto the end of the URL inside the quotes, and then there's a stray ="_blank". That link points to a bad URL and the attribute is garbled.
|
| 908 |
-
|
| 909 |
-
3. Unbalanced tags. You open two <div>s but close only... roughly one, and the whole thing is nested inside the previous acknowledgements <div> without closing it. Unbalanced <div>s make layout render unpredictably — boxes swallow each other.
|
| 910 |
-
|
| 911 |
-
4. Duplicated <hr> and <div> styling — you've got the grey box opening again inside the first one.
|
| 912 |
-
|
| 913 |
-
None of this will crash the app (it's just HTML in a gr.HTML string), but it'll look wrong: broken/invisible links and possibly nested grey boxes.
|
| 914 |
-
|
| 915 |
-
Here's a clean version that does what I think you intend — an acknowledgements box, then a separate "See also" box with two working links and the citation:
|
| 916 |
-
|
| 917 |
-
html
|
| 918 |
<br>
|
| 919 |
<hr style="margin-top: 40px; margin-bottom: 20px;">
|
| 920 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px; text-align: center;">
|
|
@@ -926,8 +899,6 @@ html
|
|
| 926 |
<p style="font-size: 14px; line-height: 1.8; margin: 8px 0 0 0;">
|
| 927 |
The code for this tool was built with the aid of Claude Opus 4.
|
| 928 |
</p>
|
| 929 |
-
</div>
|
| 930 |
-
|
| 931 |
<hr style="margin-top: 40px; margin-bottom: 20px;">
|
| 932 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px; text-align: center;">
|
| 933 |
<p style="font-size: 14px; line-height: 1.8; margin: 0;">
|
|
|
|
| 887 |
</li>
|
| 888 |
</ul>
|
| 889 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 890 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 891 |
<br>
|
| 892 |
<hr style="margin-top: 40px; margin-bottom: 20px;">
|
| 893 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px; text-align: center;">
|
|
|
|
| 899 |
<p style="font-size: 14px; line-height: 1.8; margin: 8px 0 0 0;">
|
| 900 |
The code for this tool was built with the aid of Claude Opus 4.
|
| 901 |
</p>
|
|
|
|
|
|
|
| 902 |
<hr style="margin-top: 40px; margin-bottom: 20px;">
|
| 903 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px; text-align: center;">
|
| 904 |
<p style="font-size: 14px; line-height: 1.8; margin: 0;">
|