igauk's picture
Move application file
32f69a7
raw
history blame
488 Bytes
"""
My first gradio application, used to practice the deployment of a deep learning model
"""
import gradio as gr
def greet(name):
"""
Returns a welcome message
"""
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text") # An example of how to use Gradio to create a simple
# text to text interface with a function, the inputs and outputs can be represented as different things as seen in
# the gradio documentation
iface.launch()