Spaces:
Sleeping
Sleeping
metadata
title: Brainbench
emoji: π¦
colorFrom: gray
colorTo: purple
sdk: docker
pinned: false
short_description: Implementing the braingpt model
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
This app currently uses GPT-2 as the model engine for generating and evaluating abstracts.
π Features
- π§ͺ Presents users with neuroscience abstracts (either original or altered).
- β Users decide if an abstract is AI-modified and rate their confidence.
- π€ GPT-2 model evaluates the same abstract.
- π Results compare user guesses vs model output in a clear, styled interface.
- π Backed by a curated dataset hosted on Hugging Face Datasets.
- π οΈ Fully Dockerized FastAPI application deployed via Hugging Face Spaces.
π¦ Tech Stack
- Frontend: Jinja2 + Tailwind-style CSS
- Backend: FastAPI
- Model:
gpt2via Hugging Face Transformers - Hosting: Hugging Face Spaces (Docker SDK)
- Dataset: Custom neuroscience benchmark (Parquet format)
π§ Endpoints
/: Home page/start: Begin a new session (random abstract trials)/trial: Active abstract assessment/submit-trial: Submit a response, compare with model/results: View summary of performance/predict: POST endpoint used internally to get GPT-2 output
π§ Example Use Case
- A neuroscience researcher lands on the app.
- They read an abstract and guess whether itβs been altered.
- They rate their confidence.
- GPT-2 also analyzes the abstract.
- After 3 rounds, the app displays a comparison: who got what right?
π Current Model
- Model:
gpt2 - Reason: Fast, lightweight, deployable in CPU-only Spaces
- Coming Soon:
BrainGPT(a PEFT fine-tuned model on neuroscience texts)
πΊοΈ Roadmap
- Replace GPT-2 with BrainGPT once optimized
- Add leaderboard tracking
- Improve GPT model alignment with truth labels
- Expand dataset with more domains
π§ͺ Try It Live
π BrainBench on Hugging Face Spaces
π Credits
Built by Dr. David Andai β a general practitioner & data scientist passionate about mental health and AI.