Skip to content
D

Dudil

Your Emotion-Aware Chatbot

Created on 29th May 2025

•

D

Dudil

Your Emotion-Aware Chatbot

The problem Dudil solves

Dudil is an emotion-aware chatbot that analyzes user input using a pre-trained emotion classification model and responds empathetically through Google’s Gemini AI. The application is designed to create contextual, emotionally intelligent conversations through a clean Streamlit-based interface.

Features
Emotion Detection: Classifies text into emotions such as joy, love, sadness, anger, fear, and surprise.
Empathetic AI Responses: Dynamically adapts responses based on emotional state.
Conversation History: Persists chats across sessions with support for browsing and management.
Confidence & Intensity Scoring: Provides insight into how strongly emotions are detected.
Streamlit UI: Modern web interface with expanders, metrics, and chat components.

Challenges we ran into

Challenges We Ran Into

API Rate Limits and Key Configuration

Faced issues with Gemini API quota exhaustion and key authentication, which temporarily blocked response generation.

Model Download Delays

Initial loading of the DistilBERT model (~500MB) caused delays due to slow network conditions.

Latency in Real-Time Analysis

Integrating emotion detection with AI responses introduced slight delays in generating responses, affecting real-time interaction.

Streamlit UI Responsiveness

Maintaining a smooth and interactive UI while processing both emotion classification and AI responses required optimization.

Chat History Corruption Risks

Managing persistent JSON chat storage led to issues when files were not properly closed or when concurrent writes occurred.

Context Sync Between Modules

Ensuring the emotion context was correctly passed to Gemini for generating emotionally relevant replies needed careful handling.

Discussion

Builders also viewed

See more projects on Devfolio