Raxder_AI / app.py
ogegadavis254's picture
Update app.py
4abcfbc verified
raw
history blame
No virus
578 Bytes
import gradio as gr
def respond_to_input(input_text):
# Define responses to different inputs
if input_text.lower() == "hello":
return "Hi there! How can I assist you today?"
elif "how are you" in input_text.lower():
return "I'm just a computer program, but thanks for asking!"
else:
return "I'm not sure how to respond to that. Can you please be more specific?"
gr.Interface(
fn=respond_to_input,
inputs="text",
outputs="text",
title="Conversational AI",
description="Type a message to chat with the AI."
).launch()