Spaces:
Sleeping
Sleeping
Update chatbot_ui.py
Browse files2 unmodified lines345678910112 unmodified lines# Chatbot response functiondef chatbot_response(user_input):if user_input.lower() in ["hello", "hi"]:return "Hello! How can I help you with your studies today?"else:return "I'm here to assist with academic questions. Feel free to ask about study tips, time management, or anything else!"# Gradio interface setupwith gr.Blocks() as demo:2 unmodified lines345678910111213142 unmodified lines# Chatbot response functiondef chatbot_response(user_input):if user_input.lower() in ["hello", "hi"]:response = "Hello! How can I help you with your studies today?"else:response = "I'm here to assist with academic questions. Feel free to ask about study tips, time management, or anything else!"# Returning the conversation in the correct format (list of tuples)return [(user_input, response)]# Gradio interface setupwith gr.Blocks() as demo:
chatbot_ui.py+5-2