derek-thomas HF staff abidlabs HF staff commited on
Commit
26f993f
1 Parent(s): fa3bcce

Fill width (#1)

Browse files

- Update app.py (94e6cf08c9f24185804ff7787b50954aa19c98d3)


Co-authored-by: Abubakar Abid <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def change_bg_color(r, g, b):
6
  return f"<div style='background-color:{color}; width:100vw; height:100vh;'></div>"
7
 
8
  # Create Gradio interface
9
- with gr.Blocks() as demo:
10
  with gr.Row():
11
  r_slider = gr.Slider(0, 255, label="Red", value=128)
12
  g_slider = gr.Slider(0, 255, label="Green", value=128)
 
6
  return f"<div style='background-color:{color}; width:100vw; height:100vh;'></div>"
7
 
8
  # Create Gradio interface
9
+ with gr.Blocks(fill_width=True) as demo:
10
  with gr.Row():
11
  r_slider = gr.Slider(0, 255, label="Red", value=128)
12
  g_slider = gr.Slider(0, 255, label="Green", value=128)