tomsoderlund
commited on
Commit
•
1878582
1
Parent(s):
51857fd
Examples
Browse files
app.py
CHANGED
@@ -3,5 +3,13 @@ import gradio
|
|
3 |
def my_inference_function(name):
|
4 |
return "Hello " + name + "!"
|
5 |
|
6 |
-
gradio_interface = gradio.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
gradio_interface.launch()
|
|
|
3 |
def my_inference_function(name):
|
4 |
return "Hello " + name + "!"
|
5 |
|
6 |
+
gradio_interface = gradio.Interface(
|
7 |
+
fn=my_inference_function,
|
8 |
+
inputs="text",
|
9 |
+
outputs="text",
|
10 |
+
examples=[
|
11 |
+
["Jill"],
|
12 |
+
["Sam"]
|
13 |
+
]
|
14 |
+
)
|
15 |
gradio_interface.launch()
|