File size: 1,267 Bytes
5ab37a4
 
 
61d090f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
license: apache-2.0
---
# 🧠 Smart MCQ Solver

A Deep Learning based Multiple Choice Question Solver built using **RoBERTa-Base** and Hugging Face Transformers.

---

## Project Overview

This project predicts the correct answer among five options for a multiple-choice question.

The model is fine-tuned using the Hugging Face `AutoModelForMultipleChoice` architecture.

---

## Features

- Fine-tuned RoBERTa-base
- Multiple Choice Question Answering
- Gradio Web Interface
- Hugging Face Transformers
- PyTorch Implementation

---

## Model

RoBERTa-base

Task:

Multiple Choice Question Answering

---

## Performance

| Metric | Score |
|---------|-------|
| MAP@3 | **0.9893** |
| F1 Score | **0.99** |

Cross Validation

| Fold | MAP@3 |
|------|--------|
|1|0.9871|
|2|0.9854|
|3|0.9963|
|4|0.9933|
|5|0.9846|

Mean MAP@3

0.9893

---

## Installation

```bash
git clone https://github.com/YOUR_USERNAME/smart-mcq-solver.git

cd smart-mcq-solver

pip install -r requirements.txt
```

---

## Run

```bash
python app.py
```

---

## Screenshots

### Home Page

![Loading](image.png)

### Prediction

![Loading](image-1.png)

---

## Tech Stack

- Python
- PyTorch
- Transformers
- Hugging Face
- Gradio

---

## Author

Rohit Kumar

IIT Madras BS Degree