Update app.py
Browse files
app.py
CHANGED
@@ -268,15 +268,7 @@ with block:
|
|
268 |
with gr.Column():
|
269 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
270 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
271 |
-
|
272 |
-
toggle_dark.click(
|
273 |
-
None,
|
274 |
-
_js="""
|
275 |
-
() => {
|
276 |
-
document.body.classList.toggle('dark');
|
277 |
-
document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)'
|
278 |
-
}
|
279 |
-
""",
|
280 |
)
|
281 |
run_button.click(fn=canny, inputs=[input_image, resolution, low_threshold, high_threshold], outputs=[gallery])
|
282 |
|
|
|
268 |
with gr.Column():
|
269 |
gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
|
270 |
# gallery = gr.Gallery(label="Generated images", show_label=False).style(height="auto")
|
271 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
)
|
273 |
run_button.click(fn=canny, inputs=[input_image, resolution, low_threshold, high_threshold], outputs=[gallery])
|
274 |
|