File size: 612 Bytes
6ec833c
8ef5915
6ec833c
 
 
 
 
 
8a4ecce
8ef5915
9ab36c2
8ef5915
9ab36c2
8ef5915
9ab36c2
8ef5915
 
 
 
9ab36c2
8ef5915
9ab36c2
8ef5915
 
8a4ecce
8ef5915
 
 
 
 
 
 
 
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
---
title: StudyLoop
emoji: 📚
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
---

# StudyLoop API

Generate practice questions from study materials.

## API Endpoints

- `GET /` - Welcome message
- `GET /health` - Health check
- `POST /api/generate` - Generate questions from text
- `POST /api/generate-more` - Generate additional questions

## Usage

```python
import requests

response = requests.post(
    "https://your-space.hf.space/api/generate",
    data={
        "text": "Your study material here...",
        "session_id": "test_session",
        "options": '{"num_questions": 5}'
    }
)