timbosssds commited on
Commit
5bacfc6
·
verified ·
1 Parent(s): 3f785c1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ python
2
+ import gradio as gr
3
+
4
+ def form_fn(name, email):
5
+ return f"Name: {name}, Email: {email}"
6
+
7
+ demo = gr.Interface(
8
+ fn=form_fn,
9
+ inputs=[
10
+ gr.inputs.Textbox(label="Name"),
11
+ gr.inputs.Textbox(label="Email")
12
+ ],
13
+ outputs="text"
14
+ )
15
+
16
+ demo.launch()