derek-thomas HF staff commited on
Commit
fa3bcce
1 Parent(s): e874472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  # Function to change background color based on RGB values
4
  def change_bg_color(r, g, b):
5
  color = f"rgb({r}, {g}, {b})"
6
- return f"<div style='background-color:{color}; height:200px;'></div>"
7
 
8
  # Create Gradio interface
9
  with gr.Blocks() as demo:
 
3
  # Function to change background color based on RGB values
4
  def change_bg_color(r, g, b):
5
  color = f"rgb({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: