Spaces:
Sleeping
Sleeping
Commit
•
26f993f
1
Parent(s):
fa3bcce
Fill width (#1)
Browse files- Update app.py (94e6cf08c9f24185804ff7787b50954aa19c98d3)
Co-authored-by: Abubakar Abid <[email protected]>
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)
|