Spaces:
Sleeping
Sleeping
| title: SQL Error Classifier | |
| emoji: ποΈ | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| license: mit | |
| # SQL Error Classifier β Inference | |
| Classify student SQL mistakes using a **CodeBERT cross-encoder** model. | |
| Model: [nishu08/sql-codebert-classifier](https://huggingface.co/nishu08/sql-codebert-classifier) | |
| ## Inputs | |
| - **Question** β what the student was asked | |
| - **Schema** β available tables/columns | |
| - **Student SQL** β student's submission | |
| - **Correct SQL** β reference answer | |
| ## Labels | |
| `JOIN_ERROR`, `AGGREGATION_ERROR`, `FILTER_ERROR`, `WINDOW_FUNCTION_ERROR`, | |
| `SUBQUERY_ERROR`, `NULL_HANDLING_ERROR`, `PERFORMANCE_ERROR`, `LOGICAL_ERROR`, `SYNTAX_ERROR`, `NO_ERROR` | |
| ## Secrets (optional) | |
| - `SPACE_MODEL_ID` β override model repo (default: `nishu08/sql-codebert-classifier`) | |