nonstopiodemo commited on
Commit
d60755b
·
verified ·
1 Parent(s): 46590ef

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +13 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def add_numbers(num1, num2):
4
+ return num1 + num2
5
+
6
+ inputs = [
7
+ gr.inputs.Number(label="Number 1"),
8
+ gr.inputs.Number(label="Number 2")
9
+ ]
10
+
11
+ output = gr.outputs.Text(label="Result")
12
+
13
+ gr.Interface(fn=add_numbers, inputs=inputs, outputs=output).launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio