Update app.py
Browse files
app.py
CHANGED
|
@@ -22,9 +22,10 @@ demo = gr.Interface(
|
|
| 22 |
title="Web(GPT)3"
|
| 23 |
)
|
| 24 |
|
| 25 |
-
demo.launch(
|
|
|
|
| 26 |
gradioURL = window.location.href
|
| 27 |
if (!gradioURL.endsWith('?__theme=light')) {
|
| 28 |
window.location.replace(gradioURL + '?__theme=light');
|
| 29 |
}
|
| 30 |
-
})
|
|
|
|
| 22 |
title="Web(GPT)3"
|
| 23 |
)
|
| 24 |
|
| 25 |
+
demo.launch()
|
| 26 |
+
window.addEventListener('load', function () {
|
| 27 |
gradioURL = window.location.href
|
| 28 |
if (!gradioURL.endsWith('?__theme=light')) {
|
| 29 |
window.location.replace(gradioURL + '?__theme=light');
|
| 30 |
}
|
| 31 |
+
})
|