File size: 1,564 Bytes
b69fa82
 
 
 
 
 
 
 
 
 
 
 
 
ff1ba06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: CodeFeel
emoji: 📈
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 5.43.1
app_file: app.py
pinned: false
short_description: Code Feel
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# GitHub Comment Emotion Detector

![GitHub Emotions](https://img.shields.io/badge/Status-Prototype-blue)

## Overview
**GitHub Comment Emotion Detector** is an interactive web application that detects the emotional tone of GitHub comments. Using a fine-tuned transformer model trained on the [GitHub Emotion Love dataset](https://huggingface.co/datasets/imranraad/github-emotion-love), it predicts six emotions:

- Anger
- Love
- Fear
- Joy
- Sadness
- Surprise

This tool is designed to help developers and community managers understand the emotional context of discussions in GitHub repositories.

---

## Features
- **Multi-label Emotion Detection**: Detects multiple emotions in a single comment.
- **Interactive Web Interface**: Enter a comment and get real-time predictions.
- **Easy Integration**: Can be extended to analyze batches of comments or integrated into GitHub tools.

---

## Demo
Enter a GitHub comment in the text box and click **Submit** to see predicted emotions and their confidence scores.

![Demo Screenshot](link-to-screenshot-if-available)

---

## Installation (Optional for Local Use)
To run locally, clone the repo and install dependencies:

```bash
git clone https://huggingface.co/spaces/<your-space-name>
cd <your-space-name>
pip install -r requirements.txt
python app.py