Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -125,12 +125,13 @@ with gr.Blocks(theme='SebastianBravo/simci_css') as demo:
|
|
125 |
|
126 |
import webbrowser
|
127 |
|
128 |
-
def apply_dark_theme(url):
|
129 |
-
|
130 |
-
|
131 |
|
132 |
-
gradioURL = 'http://localhost:7860/'
|
133 |
-
apply_dark_theme(gradioURL)
|
134 |
|
135 |
if __name__ == "__main__":
|
136 |
-
demo.launch()
|
|
|
|
125 |
|
126 |
import webbrowser
|
127 |
|
128 |
+
# def apply_dark_theme(url):
|
129 |
+
# if not url.endswith('?__theme=dark'):
|
130 |
+
# webbrowser.open_new(url + '?__theme=dark')
|
131 |
|
132 |
+
# gradioURL = 'http://localhost:7860/'
|
133 |
+
# apply_dark_theme(gradioURL)
|
134 |
|
135 |
if __name__ == "__main__":
|
136 |
+
demo.launch()
|
137 |
+
print(webbrowser.get())
|