text-summarizer / app.py
tomsoderlund's picture
Gradio API setup
82e9de9
raw
history blame
251 Bytes
import gradio
def my_inference_function(name):
return "Hello " + name + "!"
gradio_interface = gradio.Interface(
fn=my_inference_function,
inputs="text",
outputs="text",
examples=[
["Jill"],
["Sam"]
]
)
gradio_interface.launch()