Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -482,6 +482,7 @@ def process_hdf5_file(uploaded_file, percentage):
|
|
| 482 |
sys.stdout = sys.__stdout__ # Reset print statements
|
| 483 |
|
| 484 |
######################## Define the Gradio interface ###############################
|
|
|
|
| 485 |
<script>
|
| 486 |
function detectTheme() {
|
| 487 |
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
@@ -500,6 +501,7 @@ window.onload = function() {
|
|
| 500 |
}
|
| 501 |
};
|
| 502 |
</script>
|
|
|
|
| 503 |
|
| 504 |
with gr.Blocks(css="""
|
| 505 |
.slider-container {
|
|
|
|
| 482 |
sys.stdout = sys.__stdout__ # Reset print statements
|
| 483 |
|
| 484 |
######################## Define the Gradio interface ###############################
|
| 485 |
+
detect_theme_js = """
|
| 486 |
<script>
|
| 487 |
function detectTheme() {
|
| 488 |
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
|
|
| 501 |
}
|
| 502 |
};
|
| 503 |
</script>
|
| 504 |
+
"""
|
| 505 |
|
| 506 |
with gr.Blocks(css="""
|
| 507 |
.slider-container {
|