itsjarvis commited on
Commit
b571657
·
verified ·
1 Parent(s): 965050d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +64 -10
README.md CHANGED
@@ -1,10 +1,64 @@
1
- ---
2
- title: Superkart Api
3
- emoji: 💻
4
- colorFrom: red
5
- colorTo: gray
6
- sdk: docker
7
- pinned: false
8
- ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: SuperKart Sales Forecasting API
3
+ emoji: 🛋️
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: docker
7
+ app_port: 8080
8
+ pinned: false
9
+ ---
10
+
11
+ # SuperKart Sales Forecasting API
12
+
13
+ ## Overview
14
+ Production-ready Flask API for predicting SuperKart sales using machine learning.
15
+
16
+ ## Features
17
+ - Single prediction endpoint
18
+ - Batch prediction support
19
+ - Input validation and error handling
20
+ - Health monitoring
21
+ - Model information endpoint
22
+ - CORS support
23
+ - Production-ready configuration
24
+
25
+ ## Endpoints
26
+ - `GET /` - API information
27
+ - `GET /health` - Health check
28
+ - `GET /model_info` - Model details
29
+ - `POST /predict` - Single prediction
30
+ - `POST /batch_predict` - Batch predictions
31
+
32
+ ## Local Development
33
+ ```bash
34
+ pip install -r requirements.txt
35
+ python app.py
36
+ ```
37
+
38
+ ## Docker Deployment
39
+ ```bash
40
+ docker build -t superkart-api .
41
+ docker run -p 8080:8080 superkart-api
42
+ ```
43
+
44
+ ## Sample Request
45
+ ```json
46
+ {
47
+ "Product_Weight": 10.5,
48
+ "Product_Sugar_Content": "Low Sugar",
49
+ "Product_Allocated_Area": 0.15,
50
+ "Product_Type": "Fruits and Vegetables",
51
+ "Product_MRP": 150.0,
52
+ "Store_Size": "Medium",
53
+ "Store_Location_City_Type": "Tier 2",
54
+ "Store_Type": "Supermarket Type2",
55
+ "Store_Age": 15
56
+ }
57
+ ```
58
+
59
+ ## Model Information
60
+ - Model: Random Forest (Tuned)
61
+ - Accuracy: High precision sales forecasting
62
+ - Input Features: 9 core features + engineered features
63
+ - Output: Predicted sales value
64
+