Spaces:
Sleeping
Sleeping
Commit
•
fa3bcce
1
Parent(s):
e874472
Update app.py
Browse files
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:
|
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:
|