Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
return "Hello, World!"
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
import App
|
12 |
-
return App.hello_world()
|
13 |
|
14 |
-
|
15 |
-
|
|
|
1 |
+
import gradio as gr
|
2 |
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!"
|
5 |
|
6 |
+
def add(a, b):
|
7 |
+
return a + b
|
|
|
8 |
|
9 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
10 |
+
demo.launch()
|
|
|
|
|
11 |
|
12 |
+
demo2 = gr.Interface(fn=add, inputs=["number", "number"], outputs="number")
|
13 |
+
demo2.launch()
|