danhtran2mind commited on
Commit
c87ce87
·
verified ·
1 Parent(s): 37ae8e5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def add(a, b):
4
+ return a + b
5
+
6
+ demo = gr.Interface(
7
+ fn=add,
8
+ inputs=[gr.Number(label="a"), gr.Number(label="b")],
9
+ outputs=gr.Number(label="a + b"),
10
+ title="Simple Addition",
11
+ description="Add two numbers together",
12
+ )
13
+
14
+ if __name__ == "__main__":
15
+ demo.launch()