File size: 1,038 Bytes
9ffc0fb
 
 
 
 
 
 
 
 
 
 
 
 
05b7a3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9ffc0fb
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
---
title: Accent
emoji: 💻
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 5.31.0
app_file: app.py
pinned: false
license: mit
short_description: English Accent Classifier
---

# English Accent Classifier

This is a simple web application built with Gradio that classifies the English accent spoken in a video.

## Features
- Accepts a public `.mp4` video URL
- Extracts and processes audio
- Classifies English accents (e.g., American, British, etc.)
- Returns:
  - Detected accent
  - Confidence score
  - Summary explanation

## How it works
1. Downloads the video from the provided URL
2. Extracts audio using `moviepy`
3. Uses a pretrained model (`speechbrain`) for accent classification
4. Cleans up temporary files after processing

## Dependencies
See `requirements.txt`. Includes:
- `gradio`
- `moviepy`
- `torch`
- `speechbrain`
- `transformers`
- `requests`

## License
This project is licensed under the MIT License.
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference