nlpia-rnn / app.py
hobs
Add application file
ca70154
raw
history blame
267 Bytes
# app.py
import gradio as gr
def greet_nationality(name):
nationality = 'somewhere'
return f"Hello {name}!!\n Your name seems to be from {nationality}. Am I right?"
iface = gr.Interface(fn=greet_nationality, inputs="text", outputs="text")
iface.launch()