gsbm commited on
Commit
299828f
·
verified ·
1 Parent(s): 78470e8

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +7 -2
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
- outputs=[gr.Textbox(label="greeting", lines=3)],
 
 
 
 
 
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__":