atatakun commited on
Commit
18a1eac
1 Parent(s): 527a04e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
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
- dropdown.change(None, dropdown, None, _js=js)
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