api_test / app.py
minoD's picture
Add iface
2de8044
raw
history blame
209 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text", api_name="/greet")
if __name__ == "__main__":
iface.launch(share=True)