Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -227,7 +227,16 @@ with gr.Blocks(
|
|
| 227 |
primary_hue="sky",
|
| 228 |
secondary_hue="orange",
|
| 229 |
font=["Arial", "sans-serif"]
|
| 230 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
) as app:
|
| 232 |
gr.Markdown(f"""<div style='text-align: center; padding: 20px; color: white;'><h1 style='font-size: 3em; color: #00BFFF;'>📈 Crypto Pulse</h1><p style='font-size: 1.2em; color: #A9A9A9;'>比特幣新聞情緒與價格分析儀表板</p><p style='font-size: 0.9em; color: #888;'>Designed by: {DEVELOPER_NAME}</p></div>""")
|
| 233 |
|
|
|
|
| 227 |
primary_hue="sky",
|
| 228 |
secondary_hue="orange",
|
| 229 |
font=["Arial", "sans-serif"]
|
| 230 |
+
),
|
| 231 |
+
js="""
|
| 232 |
+
function refresh() {
|
| 233 |
+
const url = new URL(window.location);
|
| 234 |
+
if (url.searchParams.get('__theme') !== 'dark') {
|
| 235 |
+
url.searchParams.set('__theme', 'dark');
|
| 236 |
+
window.location.href = url.href;
|
| 237 |
+
}
|
| 238 |
+
}
|
| 239 |
+
"""
|
| 240 |
) as app:
|
| 241 |
gr.Markdown(f"""<div style='text-align: center; padding: 20px; color: white;'><h1 style='font-size: 3em; color: #00BFFF;'>📈 Crypto Pulse</h1><p style='font-size: 1.2em; color: #A9A9A9;'>比特幣新聞情緒與價格分析儀表板</p><p style='font-size: 0.9em; color: #888;'>Designed by: {DEVELOPER_NAME}</p></div>""")
|
| 242 |
|