mindwrapped commited on
Commit
5e75ed8
·
1 Parent(s): 4944d02

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def update_value(val):
4
+ return f'Value is set to {val}'
5
+
6
+ demo = gr.Blocks()
7
+
8
+ with demo:
9
+ inp = gr.Slider(0, 100, label='Value')
10
+ md = gr.Markdown('Select a value')
11
+
12
+ inp.change(fn=update_value, inputs=inp, outputs=md)
13
+
14
+ demo.launch()