Spaces:
Runtime error
Runtime error
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,51 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Book Sales Analytics App
|
| 3 |
-
emoji: π
|
| 4 |
-
colorFrom: indigo
|
| 5 |
-
colorTo: purple
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 5.22.0
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
# Book Sales Analytics App
|
| 13 |
-
|
| 14 |
-
This Space converts the logic from the uploaded Jupyter notebook into a single `app.py` file and runs it on:
|
| 15 |
-
|
| 16 |
-
- `synthetic_book_reviews.csv`
|
| 17 |
-
- `synthetic_sales_data.csv`
|
| 18 |
-
|
| 19 |
-
## What the app does
|
| 20 |
-
|
| 21 |
-
1. Loads the two CSV datasets.
|
| 22 |
-
2. Recreates the notebook analysis in Python functions.
|
| 23 |
-
3. Generates:
|
| 24 |
-
- static figures
|
| 25 |
-
- KPI summaries
|
| 26 |
-
- dashboard tables
|
| 27 |
-
- pricing decisions
|
| 28 |
-
- ARIMA forecast visualizations
|
| 29 |
-
4. Displays the outputs in a Gradio dashboard.
|
| 30 |
-
|
| 31 |
-
## Files included
|
| 32 |
-
|
| 33 |
-
- `app.py` β main Hugging Face Space app
|
| 34 |
-
- `requirements.txt` β pinned Python dependencies
|
| 35 |
-
- `style.css` β lightweight UI styling
|
| 36 |
-
- `synthetic_book_reviews.csv` β input dataset
|
| 37 |
-
- `synthetic_sales_data.csv` β input dataset
|
| 38 |
-
|
| 39 |
-
## Deploy on Hugging Face Spaces
|
| 40 |
-
|
| 41 |
-
1. Create a new **Gradio** Space.
|
| 42 |
-
2. Upload all files from this folder.
|
| 43 |
-
3. Wait for the Space to build.
|
| 44 |
-
4. Open the app and click **Run Full Pipeline**.
|
| 45 |
-
5. Then open **Dashboard** and click **Refresh Dashboard**.
|
| 46 |
-
|
| 47 |
-
## Notes
|
| 48 |
-
|
| 49 |
-
- The original notebook created synthetic review text before sentiment analysis. Because your attached reviews CSV does not contain a `review_text` column, the app recreates that step programmatically.
|
| 50 |
-
- The app uses a fixed random seed for reproducible results.
|
| 51 |
-
- No background images are required.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|