How dharicharan/ai-project-iitm works
This repository is a BERT-based multi-label emotion classifier with an interactive Gradio inference app. Its user workflow accepts text, tokenizes it, runs a fine-tuned model, and returns confidence scores for five emotions. The README also documents dataset preprocessing, baseline/LSTM experiments, and BERT training/inference notebooks; those are represented at the notebook-directory level because their contents were not sampled. App-level relationships are grounded in app.py; the unsampled notebook stages are not connected by speculative execution edges.
Main entry points: app.py Gradio interface
Components 14
Model Development
- Train/test data
data - Data analysis
notebook - TF-IDF baseline
notebook - LSTM modeling
notebook - BERT training
notebook - Submission inference
notebook
Inference Application
- Gradio interface
app.py - Emotion prediction
app.py - Text tokenizer
app.py - BERT classifier
app.py
Model Services
- Model weights
- Hugging Face Hub
- BERT pretrained model
Other components
- Text user
Connections 10
- Text user → Gradio interface: enters text
README.md - Gradio interface → Emotion prediction: dispatches
app.py - Emotion prediction → Text tokenizer: tokenizes text
app.py - Emotion prediction → BERT classifier: runs inference
app.py - BERT classifier → Emotion prediction: returns logits
app.py - Emotion prediction → Gradio interface: returns scores
app.py - BERT classifier → BERT pretrained model: loads backbone
app.py - Gradio interface → Hugging Face Hub: downloads tokenizer
app.py - Gradio interface → Model weights: loads weights
app.py - Hugging Face Hub → Model weights: hosts weights
README.md