Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1975,6 +1975,14 @@ function refresh() {
|
|
| 1975 |
window.location.href = url.href;
|
| 1976 |
}
|
| 1977 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1978 |
"""
|
| 1979 |
with gr.Blocks(js=js_func) as demo:
|
| 1980 |
with gr.Column():
|
|
|
|
| 1975 |
window.location.href = url.href;
|
| 1976 |
}
|
| 1977 |
}
|
| 1978 |
+
|
| 1979 |
+
// Automatically click the "VW Customers" button on page load
|
| 1980 |
+
window.onload = function() {
|
| 1981 |
+
const vwCustomersBtn = document.querySelector("button:contains('VW Customers')");
|
| 1982 |
+
if (vwCustomersBtn) {
|
| 1983 |
+
vwCustomersBtn.click();
|
| 1984 |
+
}
|
| 1985 |
+
};
|
| 1986 |
"""
|
| 1987 |
with gr.Blocks(js=js_func) as demo:
|
| 1988 |
with gr.Column():
|