Spaces:
Running
Running
Commit
·
bef7d76
1
Parent(s):
30beb50
try to force light mode
Browse files
app.py
CHANGED
@@ -122,11 +122,19 @@ css = """
|
|
122 |
}
|
123 |
"""
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
|
127 |
# generated_prompt = ""
|
128 |
|
129 |
-
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
130 |
# gr.Markdown("# Draptic: from garment image to technical flat sketch")
|
131 |
with gr.Row():
|
132 |
with gr.Column(elem_id="col-input-image"):
|
|
|
122 |
}
|
123 |
"""
|
124 |
|
125 |
+
js_func = """
|
126 |
+
function refresh() {
|
127 |
+
const url = new URL(window.location);
|
128 |
+
|
129 |
+
url.searchParams.set('__theme', 'light');
|
130 |
+
window.location.href = url.href;
|
131 |
+
}
|
132 |
+
"""
|
133 |
|
134 |
|
135 |
# generated_prompt = ""
|
136 |
|
137 |
+
with gr.Blocks(css=css, theme=gr.themes.Soft(), js=js_func) as demo:
|
138 |
# gr.Markdown("# Draptic: from garment image to technical flat sketch")
|
139 |
with gr.Row():
|
140 |
with gr.Column(elem_id="col-input-image"):
|