AI Chatbot using Flan-T5
Simple Chatbot with FastAPI & Hugging Face
This project is a simple yet professional chatbot developed using FastAPI for the backend and
HTML/CSS/JavaScript for the frontend.
The chatbot connects to the flan-t5-base language model through the Hugging Face API to
generate natural and meaningful responses.
Key Features:
Sending user messages to the server and receiving responses from the AI model.
Storing chat history in the browser memory until the page is refreshed.
A user interface designed similar to popular messaging apps for a better user experience.
Loading animation while waiting for the model’s response to enhance user interaction.
Optimized performance: only the latest user message is sent to the model (not the full
conversation history), improving speed and accuracy.
Error handling to provide clear feedback to the user.
Technologies Used:
Python (FastAPI)
Hugging Face API
HTML, CSS, JavaScript
Project Goal: Building a professional portfolio project to demonstrate skills in AI integration
and developing interactive applications.
Screen shot