Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def compute():
|
| 4 |
return css
|
| 5 |
|
| 6 |
css = """
|
|
@@ -81,7 +81,12 @@ css = """
|
|
| 81 |
with gr.Blocks(css=css) as demo:
|
| 82 |
gr.Interface(
|
| 83 |
fn=compute,
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
)
|
| 86 |
|
| 87 |
if __name__ == "__main__":
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def compute(primary_color, secondary_color, neutral_color):
|
| 4 |
return css
|
| 5 |
|
| 6 |
css = """
|
|
|
|
| 81 |
with gr.Blocks(css=css) as demo:
|
| 82 |
gr.Interface(
|
| 83 |
fn=compute,
|
| 84 |
+
inputs=[
|
| 85 |
+
gr.Textbox(label="Primary color")
|
| 86 |
+
gr.Textbox(label="Secondary color")
|
| 87 |
+
gr.Textbox(label="Neutral color")
|
| 88 |
+
]
|
| 89 |
+
outputs=[gr.Textbox(label="Custom css", lines=3)],
|
| 90 |
)
|
| 91 |
|
| 92 |
if __name__ == "__main__":
|