File size: 1,200 Bytes
b144cb7
 
 
 
 
14204cc
b144cb7
 
 
 
 
 
 
9472d63
b144cb7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: AI vs Human Code Classifier
emoji: 🤖
colorFrom: purple
colorTo: blue
sdk: docker
python_version: "3.11.9"
suggested_hardware: cpu-basic
startup_duration_timeout: 60m
preload_from_hub:
  - microsoft/unixcoder-base
models:
  - microsoft/unixcoder-base
short_description: AI vs human code classifier
tags:
  - code-classification
  - explainability
  - xgboost
---

# AI vs Human Code Classifier

Gradio demo for [Hugging Face Spaces](https://huggingface.co/docs/hub/spaces-overview) using the same inference stack as the Reflex app (`reflex_ui`).

## Deploy on Hugging Face

1. Create a [new Space](https://huggingface.co/new-space), pick **Gradio**, then push this repository (or connect GitHub and set the repository).
2. In **Settings → Hardware**, keep **CPU Basic** (free: 16 GB RAM) unless you need a GPU.
3. Open the **App** tab. The first run may take a while while weights load.

Public URL shape: `https://huggingface.co/spaces/<your-username>/<space-name>` (and the `.hf.space` embed URL from the Space menu).

## Local Gradio (optional)

```bash
pip install -r requirements.txt
python app.py
```

## Local Reflex UI

See `reflex_ui/README.md` for the full Reflex front end.