Upload 2 files
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def create_gradio_app():
|
|
57 |
f'<style>{css_content}</style>'
|
58 |
).replace(
|
59 |
'<script src="script.js"></script>',
|
60 |
-
f'<script>{js_content}</script>'
|
61 |
)
|
62 |
|
63 |
# Create the Gradio interface
|
|
|
57 |
f'<style>{css_content}</style>'
|
58 |
).replace(
|
59 |
'<script src="script.js"></script>',
|
60 |
+
f'<script>if(document.readyState === "loading") {{ document.addEventListener("DOMContentLoaded", () => {{ {js_content} }}); }} else {{ {js_content} }}</script>'
|
61 |
)
|
62 |
|
63 |
# Create the Gradio interface
|
style.css
CHANGED
@@ -115,6 +115,23 @@ body {
|
|
115 |
text-decoration: none;
|
116 |
}
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
.diagram-section {
|
119 |
text-align: center;
|
120 |
margin-bottom: 40px;
|
|
|
115 |
text-decoration: none;
|
116 |
}
|
117 |
|
118 |
+
/* Specific colors for different links */
|
119 |
+
.paper-link[href*="github"] {
|
120 |
+
background-color: #333333;
|
121 |
+
}
|
122 |
+
|
123 |
+
.paper-link[href*="github"]:hover {
|
124 |
+
background-color: #555555;
|
125 |
+
}
|
126 |
+
|
127 |
+
.paper-link[href*="arxiv"] {
|
128 |
+
background-color: #b31b1b;
|
129 |
+
}
|
130 |
+
|
131 |
+
.paper-link[href*="arxiv"]:hover {
|
132 |
+
background-color: #d41e1e;
|
133 |
+
}
|
134 |
+
|
135 |
.diagram-section {
|
136 |
text-align: center;
|
137 |
margin-bottom: 40px;
|