File size: 686 Bytes
bb71ada
89eb08d
01d2f71
89eb08d
 
 
01d2f71
bb71ada
01d2f71
939914a
89eb08d
939914a
89eb08d
939914a
488d640
 
939914a
89eb08d
01d2f71
89eb08d
01d2f71
89eb08d
01d2f71
c6d7670
99df8fe
89eb08d
 
 
 
 
 
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
---
title: Smart Quiz API
emoji: "🧠"
colorFrom: "blue"
colorTo: "green"
sdk: "docker"
app_file: "app.py"
pinned: false
---

# Smart Quiz API

This is the **FastAPI backend** for the Smart Quiz system. It provides an API endpoint to generate AI-powered multiple-choice quiz questions based on a given topic.

> 👉 To try the full interactive quiz experience, please visit the Gradio UI:  
> <a href="https://gface.co/spaces/NZLouislu/smart-quiz-ui" target="_blank" rel="noopener noreferrer">NZLouislu/smart-quiz-ui</a>

---

## 🧠 API Endpoint

**POST** `/generate_quiz`

### Request Body (JSON)

```json
{
  "topic": "New Zealand",
  "n_questions": 3,
  "difficulty": "medium"
}