import gradio as gr def greet(name): return "Hello " + name + "!!" def conversation(text): if text == 'hi': return "hello!! how are you ?" elif text == 'bye': return "ok then bye! take care and see you soon." iface = gr.Interface(fn=greet, inputs="text", outputs="text") cface = gr.Interface(fn=conversation, inputs="text", outputs="text") cface.launch() iface.launch()