File size: 1,016 Bytes
92d1e9d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
46
47
48
49
50
51
52
---
title: Flask Question Generation API
emoji: 🎓
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
---

# Flask ML API - Question Generation

AI-powered API for generating educational questions from study content.

## Features

- 🤖 **BiGNN Classification** - Classifies sentences for MCQ vs Theory questions
- ✨ **Gemini AI Generation** - Generates 40 MCQs + 20 Theory questions
- 📝 **NLTK Tokenization** - Smart sentence splitting
- ⚡ **Fast Processing** - 60-90 second response time

## API Endpoints

### Health Check
```bash
GET /health
```

### Generate Questions
```bash
POST /api/restructure/
Content-Type: application/json

{
  "content": "Your educational content here..."
}
```

## Usage Example

```bash
curl -X POST https://YOUR-SPACE-NAME.hf.space/api/restructure/ \
  -H "Content-Type: application/json" \
  -d '{"content": "Your study content..."}'
```

## Technical Stack

- Flask + PyTorch + BiGNN + Gemini AI + NLTK + Gunicorn

---

Built with ❤️ for educational technology