bot / app.py
JohnSystems's picture
Update app.py
a52133d verified
Raw History Blame Contribute Delete
441 Bytes
import gradio as gr
def chatbot(text):
if text == "Olá":
return "Olá! Como posso ajudar?"
elif text == "Como você está?":
return "Estou bem, obrigado!"
else:
return "Não entendi. Pode repetir?"
demo = gradio.Interface(
fn=chatbot,
inputs="text",
outputs="text",
title="Meu Chatbot",
description="Um chatbot simples para conversar"
)
if __name__ == "__main__":
demo.launch()