Mindket

GenreClassifier

Newversion 1 · updated

Overview

Guesses the music genre of an uploaded audio track with an LSTM model trained on the GTZAN dataset. For music fans and students who want to try a small audio classifier.

GenreClassifier is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Nothing to install if you use the Space online
  • Python 3.10, if you run a copy on your own computer
  • The Python packages in requirements.txt
Runs in
  • A web browser, on the Space's page at Hugging Face
  • Your own computer, running Python 3.10 on Windows, macOS or Linux
  • Your own scripts, through the API the README points to
Start with
pip install -U huggingface_hub
hf download Enutrof/GenreClassifier --repo-type space --local-dir GenreClassifier
cd GenreClassifier

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

GenreClassifier guesses the music genre of a track you upload. It was trained on the GTZAN dataset, which covers ten genres, using an LSTM model built with Keras on a TensorFlow backend. It runs as a Gradio app.

Who it suits

It suits music fans, students and developers who want to see a small audio classification model in action.

IndustryWho uses itHow they use itExample
MusicHobbyists and DJsGet a quick genre guess for a trackUpload a song and read the predicted genre
EducationStudentsStudy audio classification with an LSTMTry tracks from different genres
Machine learningDevelopersLook at a small Keras audio model in an appCall its API from a script

You can skip it if you need reliable tagging of music unlike the training data.

Where to use it

  • A web browser, on the Space's page at Hugging Face
  • Your own computer, running Python 3.10 on Windows, macOS or Linux
  • Your own scripts, through the API the README points to
Use caseWhoWhat they get back
Guess a genreMusic fansA predicted genre for an uploaded track
Test on your own musicStudentsA feel for how the model copes with unfamiliar songs
Call it from codeDevelopersPredictions through the Space's API

How to set it up

  • Nothing to install if you use the Space online
  • Python 3.10, if you run a copy on your own computer
  • The Python packages in requirements.txt
  1. Open the Space's page on Hugging Face to use it online.
  2. To run a copy, install huggingface_hub and download the Space into a folder.
  3. Move into that folder and install the pinned Gradio version, then the listed packages.
  4. Start the app with Python.
pip install -U huggingface_hub
hf download Enutrof/GenreClassifier --repo-type space --local-dir GenreClassifier
cd GenreClassifier
pip install gradio==6.30.0
pip install -r requirements.txt
python app.py

How to use it

Open the Space and upload an audio track. The app returns its genre prediction. The README also points to API documentation for the Space if you want to call it from code. On your own copy, start the app with this command and open the local page Gradio prints.

python app.py

Example

Upload a song you know well, such as a jazz or rock track. You get back the genre the model thinks it is, which you can compare with your own idea.

For newcomers and experts

If you are new, upload a track and see which genre it names. Then try a few songs from different styles to see where it goes wrong.

If you know the field, the model is an LSTM built with Keras on TensorFlow and trained on GTZAN, which holds 100 tracks of 30 seconds for each of ten genres. The author says it does well on GTZAN-like data and would do better with more data. Expect weaker results on music unlike that set.

  1. You upload an audio track
  2. The app prepares the audio for the model
  3. The LSTM scores the ten genres
  4. The page shows the predicted genre

Good to know

  • License: afl-3
  • Cost to run: none named. The online Space runs on Hugging Face.
  • Data it reaches: the audio you upload, and the saved model file in its repository.
  • Limits: the model learned from 100 tracks per genre, so unusual or mixed-genre songs may be misjudged.

README and files

README

GenreClassifier

Guesses the music genre of an uploaded audio track with an LSTM model trained on the GTZAN dataset. For music fans and students who want to try a small audio classifier.

Made by Enutrof on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: GenreClassifier guesses the music genre of a track you upload. It was trained on the GTZAN dataset, which covers ten genres, using an LSTM model built with Keras on a TensorFlow backend. It runs as a Gradio app.

Who it suits: It suits music fans, students and developers who want to see a small audio classification model in action.

Industry | Who uses it | How they use it | Example
Music | Hobbyists and DJs | Get a quick genre guess for a track | Upload a song and read the predicted genre
Education | Students | Study audio classification with an LSTM | Try tracks from different genres
Machine learning | Developers | Look at a small Keras audio model in an app | Call its API from a script

You can skip it if you need reliable tagging of music unlike the training data.

Where to use it:

  • A web browser, on the Space's page at Hugging Face
  • Your own computer, running Python 3.10 on Windows, macOS or Linux
  • Your own scripts, through the API the README points to
Use case | Who | What they get back
Guess a genre | Music fans | A predicted genre for an uploaded track
Test on your own music | Students | A feel for how the model copes with unfamiliar songs
Call it from code | Developers | Predictions through the Space's API

How to set it up:

  • Nothing to install if you use the Space online
  • Python 3.10, if you run a copy on your own computer
  • The Python packages in requirements.txt
  1. Open the Space's page on Hugging Face to use it online.
  2. To run a copy, install huggingface_hub and download the Space into a folder.
  3. Move into that folder and install the pinned Gradio version, then the listed packages.
  4. Start the app with Python.
pip install -U huggingface_hub
hf download Enutrof/GenreClassifier --repo-type space --local-dir GenreClassifier
cd GenreClassifier
pip install gradio==6.30.0
pip install -r requirements.txt
python app.py

How to use it: Open the Space and upload an audio track. The app returns its genre prediction. The README also points to API documentation for the Space if you want to call it from code. On your own copy, start the app with this command and open the local page Gradio prints.

python app.py

Example: Upload a song you know well, such as a jazz or rock track. You get back the genre the model thinks it is, which you can compare with your own idea.

For newcomers and experts: If you are new, upload a track and see which genre it names. Then try a few songs from different styles to see where it goes wrong.

If you know the field, the model is an LSTM built with Keras on TensorFlow and trained on GTZAN, which holds 100 tracks of 30 seconds for each of ten genres. The author says it does well on GTZAN-like data and would do better with more data. Expect weaker results on music unlike that set.

You upload an audio track
The app prepares the audio for the model
The LSTM scores the ten genres
The page shows the predicted genre

Good to know:

  • License: afl-3
  • Cost to run: none named. The online Space runs on Hugging Face.
  • Data it reaches: the audio you upload, and the saved model file in its repository.
  • Limits: the model learned from 100 tracks per genre, so unusual or mixed-genre songs may be misjudged.

On Hugging Face, 13 November 2026

  • Likes: 3
  • Built with: gradio
  • License: afl-3.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  4 KB

1 file, 4 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
GenreClassifier This page3gradioafl-3.0
Open VLM LeaderboardShares gradio1,034gradioapache-2.0
Face SwapShares gradio808gradiocc-by-nc-sa-4.0
TTS Spaces ArenaShares gradio493gradiozlib
Depth Anything 3Shares gradio490gradiocc-by-nc-4.0
BLIPShares gradio431gradiobsd-3-clause
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Research

See all in Research

Merlin-Cancer-Super

AbdomenAtlas · Kit

Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…

New

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New