TIMBOVILL commited on
Commit
aa37d2e
·
verified ·
1 Parent(s): 071a231

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -83,4 +83,20 @@ class Frosted(Base):
83
 
84
  # Create an instance of the Frosted theme and apply the custom CSS
85
  frosted = Frosted()
86
- frosted.apply_custom_css()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
  # Create an instance of the Frosted theme and apply the custom CSS
85
  frosted = Frosted()
86
+ frosted.apply_custom_css()
87
+
88
+ with gr.Blocks(theme=frosted) as demo:
89
+ textbox = gr.Textbox(label="Name")
90
+ slider = gr.Slider(label="Count", minimum=0, maximum=100, step=1)
91
+ with gr.Row():
92
+ button = gr.Button("Submit", variant="primary")
93
+ clear = gr.Button("Clear")
94
+ output = gr.Textbox(label="Output")
95
+
96
+ def repeat(name, count):
97
+ time.sleep(3)
98
+ return name * count
99
+
100
+ button.click(repeat, [textbox, slider], output)
101
+
102
+ demo.launch()