Merlijn
commited on
Commit
·
6c5f1d9
1
Parent(s):
edc2d41
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(name):
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
|
4 |
+
def greet(sep_length, sep_width, pet_length, pet_width):
|
5 |
+
return f"Sepal Length: {sep_length}, Sepal Width: {sep_width}, Petal Length: {pet_length}, Petal Width: {pet_width}"
|
6 |
+
|
7 |
+
|
8 |
+
# Launch the interface
|
9 |
+
iface = gr.Interface(fn=greet, inputs=["text", "text", "text", "text" ], outputs="text")
|
10 |
iface.launch()
|