bareethul commited on
Commit
7068f46
·
verified ·
1 Parent(s): ab9f28a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +60 -1
README.md CHANGED
@@ -1,6 +1,5 @@
1
  ---
2
  title: Book Genre Predictor
3
- emoji: 😻
4
  colorFrom: indigo
5
  colorTo: red
6
  sdk: gradio
@@ -8,6 +7,66 @@ sdk_version: 5.47.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Book Genre Predictor
 
3
  colorFrom: indigo
4
  colorTo: red
5
  sdk: gradio
 
7
  app_file: app.py
8
  pinned: false
9
  license: mit
10
+ ---
11
+ # Book Genre Predictor
12
+
13
+ This Space hosts a **Gradio app** that predicts the **numeric genre code of a book** based on its **physical dimensions and page count**.
14
+ It was built using a **tabular AutoGluon model** and deployed on Hugging Face Spaces.
15
+
16
+ ---
17
+
18
+ ## Dataset & Model
19
+
20
+ - **Source Model Repo:** [FaiyazAzam/24679-tabular-autolguon-predictor](https://huggingface.co/FaiyazAzam/24679-tabular-autolguon-predictor)
21
+ - **Task:** Predict `Genre` of a book given its physical features.
22
+ - **Features Used:**
23
+ - `Height` (cm)
24
+ - `Width` (cm)
25
+ - `Depth` (cm, spine thickness)
26
+ - `Page Count` (integer)
27
+
28
+ The model was trained using [AutoGluon Tabular](https://auto.gluon.ai/stable/index.html).
29
+ Prediction outputs are **numeric labels** (e.g., 0, 1, 2) that correspond to genres in the training data.
30
+
31
+ ---
32
+
33
+ ## App Instructions
34
+
35
+ 1. Enter values for **Height, Width, Depth, Page Count**.
36
+ 2. Click **Predict** to see the model’s prediction.
37
+ 3. Use one of the **example inputs** to quickly test the app.
38
+
39
+ ✔️ Input validation ensures all values must be **positive numbers**.
40
+
41
+ ---
42
+
43
+ ## Example Inputs
44
+
45
+ | Height (cm) | Width (cm) | Depth (cm) | Page Count | Predicted Genre (code) |
46
+ |-------------|------------|------------|------------|-------------------------|
47
+ | 20.1 | 13.5 | 1.8 | 250 | e.g. 1 |
48
+ | 24.0 | 15.0 | 2.2 | 320 | e.g. 0 |
49
+ | 18.5 | 12.0 | 1.5 | 180 | e.g. 2 |
50
+
51
+ ---
52
+
53
+ ## Technical Notes
54
+
55
+ - **Framework:** [Gradio](https://www.gradio.app/) interface.
56
+ - **Backend:** AutoGluon `TabularPredictor`.
57
+ - **Deployment:** Hugging Face Spaces (`sdk: gradio`).
58
+ - **Known Limitation:** Output is a **numeric genre code**, since the training dataset only contained encoded labels.
59
+
60
+ ---
61
+
62
+ ## How This Fits the Assignment
63
+
64
+ - ✅ Uses a **classmate’s tabular model** (not my own).
65
+ - ✅ Researched and linked the **dataset/model docs**.
66
+ - ✅ Built a Gradio app with **widgets + examples**.
67
+ - ✅ Exposed inputs with validation and presented predictions clearly.
68
+ - ✅ Deployed publicly on Hugging Face Spaces with proper documentation.
69
+
70
  ---
71
 
72
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference