import gradio | |
def my_inference_function(name): | |
return "serverside says hi " + name + "!" | |
gradio_interface = gradio.Interface( | |
fn=my_inference_function, | |
inputs="text", | |
outputs="text", | |
examples=[ | |
["Jill"], | |
["Sam"] | |
], | |
title="__", | |
description="__", | |
article="__" | |
) | |
gradio_interface.launch() | |