Spaces:
Running
Running
Commit
·
1e5a7d5
1
Parent(s):
f599c40
remove js injection
Browse files
app.py
CHANGED
@@ -126,18 +126,6 @@ css = """
|
|
126 |
# generated_prompt = ""
|
127 |
|
128 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
129 |
-
demo.load(
|
130 |
-
None,
|
131 |
-
None,
|
132 |
-
_js="""
|
133 |
-
() => {
|
134 |
-
const params = new URLSearchParams(window.location.search);
|
135 |
-
if (!params.has('__theme')) {
|
136 |
-
params.set('__theme', 'light');
|
137 |
-
window.location.search = params.toString();
|
138 |
-
}
|
139 |
-
}""",
|
140 |
-
)
|
141 |
# gr.Markdown("# Draptic: from garment image to technical flat sketch")
|
142 |
with gr.Row():
|
143 |
with gr.Column(elem_id="col-input-image"):
|
|
|
126 |
# generated_prompt = ""
|
127 |
|
128 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
# gr.Markdown("# Draptic: from garment image to technical flat sketch")
|
130 |
with gr.Row():
|
131 |
with gr.Column(elem_id="col-input-image"):
|