Spaces:
Sleeping
Sleeping
Aditi
commited on
Commit
Β·
d957963
0
Parent(s):
Inital commit
Browse files- .gitignore +3 -0
- README.md +39 -0
- app.py +0 -0
- data/sample_qa_dataset.csv +1 -0
- evalutation.py +0 -0
- feedback_log.csv +0 -0
- fine_tune.py +0 -0
- model_utils.py +0 -0
- outputs/generated_questions.csv +1 -0
- requirements.txt +58 -0
.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
venv/
|
2 |
+
__pycache__/
|
3 |
+
*.pyc
|
README.md
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# π§ AI-Powered Custom Quiz Generator
|
2 |
+
|
3 |
+
Generate personalized questions using Hugging Face Transformers and Streamlit UI.
|
4 |
+
|
5 |
+
## π‘ Features
|
6 |
+
- T5-based question generator
|
7 |
+
- Streamlit frontend
|
8 |
+
- Cosine Similarity & BLEU Evaluation
|
9 |
+
- Simulated RLHF via user feedback
|
10 |
+
|
11 |
+
## π How to Run
|
12 |
+
|
13 |
+
```bash
|
14 |
+
git clone https://github.com/YOUR_USERNAME/custom-quiz-generator.git
|
15 |
+
cd custom-quiz-generator
|
16 |
+
python -m venv venv #run this command if u want to work in a virtual env
|
17 |
+
source venv\Scripts\activate #run this command if u want to work in a virtual env
|
18 |
+
pip install -r requirements.txt #to install all the required packages and libraries
|
19 |
+
|
20 |
+
#Repo Struture
|
21 |
+
custom-quiz-generator/
|
22 |
+
β
|
23 |
+
βββ app.py # Streamlit frontend
|
24 |
+
βββ model_utils.py # Model loading, prompt creation, generation
|
25 |
+
βββ evaluation.py # Cosine similarity & BLEU score calculations
|
26 |
+
βββ fine_tune.py # (Optional) fine-tuning script (even mock)
|
27 |
+
βββ feedback_log.csv # Simulated RLHF storage
|
28 |
+
βββ requirements.txt # All dependencies
|
29 |
+
βββ README.md # Project overview and usage guide
|
30 |
+
β
|
31 |
+
βββ data/
|
32 |
+
β βββ sample_qa_dataset.csv # A small quiz dataset for testing/fine-tuning
|
33 |
+
β
|
34 |
+
βββ outputs/
|
35 |
+
β βββ generated_questions.csv # Store generated questions if needed
|
36 |
+
β
|
37 |
+
βββ models/ # (Optional) Store custom fine-tuned models
|
38 |
+
β
|
39 |
+
βββ assets/ # Images/screenshots for README/demo
|
app.py
ADDED
File without changes
|
data/sample_qa_dataset.csv
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
#sample
|
evalutation.py
ADDED
File without changes
|
feedback_log.csv
ADDED
File without changes
|
fine_tune.py
ADDED
File without changes
|
model_utils.py
ADDED
File without changes
|
outputs/generated_questions.csv
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
#sample
|
requirements.txt
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
altair==5.5.0
|
2 |
+
attrs==25.3.0
|
3 |
+
blinker==1.9.0
|
4 |
+
cachetools==6.1.0
|
5 |
+
certifi==2025.6.15
|
6 |
+
charset-normalizer==3.4.2
|
7 |
+
click==8.2.1
|
8 |
+
colorama==0.4.6
|
9 |
+
filelock==3.18.0
|
10 |
+
fsspec==2025.5.1
|
11 |
+
gitdb==4.0.12
|
12 |
+
GitPython==3.1.44
|
13 |
+
huggingface-hub==0.33.2
|
14 |
+
idna==3.10
|
15 |
+
Jinja2==3.1.6
|
16 |
+
joblib==1.5.1
|
17 |
+
jsonschema==4.24.0
|
18 |
+
jsonschema-specifications==2025.4.1
|
19 |
+
MarkupSafe==3.0.2
|
20 |
+
mpmath==1.3.0
|
21 |
+
narwhals==1.45.0
|
22 |
+
networkx==3.5
|
23 |
+
nltk==3.9.1
|
24 |
+
numpy==2.3.1
|
25 |
+
packaging==25.0
|
26 |
+
pandas==2.3.0
|
27 |
+
pillow==11.3.0
|
28 |
+
protobuf==6.31.1
|
29 |
+
pyarrow==20.0.0
|
30 |
+
pydeck==0.9.1
|
31 |
+
python-dateutil==2.9.0.post0
|
32 |
+
pytz==2025.2
|
33 |
+
PyYAML==6.0.2
|
34 |
+
referencing==0.36.2
|
35 |
+
regex==2024.11.6
|
36 |
+
requests==2.32.4
|
37 |
+
rpds-py==0.26.0
|
38 |
+
safetensors==0.5.3
|
39 |
+
scikit-learn==1.7.0
|
40 |
+
scipy==1.16.0
|
41 |
+
sentence-transformers==3.1.1
|
42 |
+
setuptools==80.9.0
|
43 |
+
six==1.17.0
|
44 |
+
smmap==5.0.2
|
45 |
+
streamlit==1.46.1
|
46 |
+
sympy==1.14.0
|
47 |
+
tenacity==9.1.2
|
48 |
+
threadpoolctl==3.6.0
|
49 |
+
tokenizers==0.15.2
|
50 |
+
toml==0.10.2
|
51 |
+
torch==2.7.1
|
52 |
+
tornado==6.5.1
|
53 |
+
tqdm==4.67.1
|
54 |
+
transformers==4.39.3
|
55 |
+
typing_extensions==4.14.0
|
56 |
+
tzdata==2025.2
|
57 |
+
urllib3==2.5.0
|
58 |
+
watchdog==6.0.0
|