eliakuassi commited on
Commit
cdfe02c
Β·
verified Β·
1 Parent(s): 68a1ec8

Upload 3 files

Browse files
Files changed (3) hide show
  1. DEPLOY.md +5 -0
  2. FIX_NOTES.md +15 -0
  3. README.md +51 -0
DEPLOY.md CHANGED
@@ -21,3 +21,8 @@
21
  - If build fails, confirm the Space SDK is **Gradio**.
22
  - If notebook execution fails, check the `Execution Log` tab output.
23
  - If the AI tab does not use an LLM, set `HF_API_KEY` in Space variables.
 
 
 
 
 
 
21
  - If build fails, confirm the Space SDK is **Gradio**.
22
  - If notebook execution fails, check the `Execution Log` tab output.
23
  - If the AI tab does not use an LLM, set `HF_API_KEY` in Space variables.
24
+
25
+
26
+ ## Build error fix applied
27
+
28
+ The previous package used `python_version: 3.10` without quotes in `README.md`. In YAML, that can be interpreted as `3.1`, which makes Hugging Face try to pull `python:3.1`. This package fixes it by using `python_version: "3.10"`.
FIX_NOTES.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fix Notes
2
+
3
+ The build error came from Hugging Face reading the YAML metadata value:
4
+
5
+ python_version: 3.10
6
+
7
+ as Python 3.1.
8
+
9
+ This package fixes the metadata by changing it to:
10
+
11
+ python_version: "3.10"
12
+
13
+ It also quotes the Gradio SDK version for consistency:
14
+
15
+ sdk_version: "5.23.3"
README.md ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: ESCP Book Analytics Space
3
+ emoji: πŸ“š
4
+ colorFrom: purple
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: "5.23.3"
8
+ app_file: app.py
9
+ pinned: false
10
+ python_version: "3.10"
11
+ ---
12
+
13
+ # ESCP Book Analytics Space
14
+
15
+ This Hugging Face Space runs the included Jupyter notebook automatically and turns the saved outputs into:
16
+
17
+ - KPI cards
18
+ - Interactive sales charts
19
+ - Sentiment charts
20
+ - Top-seller analysis
21
+ - Table previews
22
+ - A simple AI dashboard for natural-language questions
23
+
24
+ ## Files included
25
+
26
+ - `app.py` β€” the Gradio application
27
+ - `pythonanalysis.ipynb` β€” your uploaded analysis notebook
28
+ - `synthetic_sales_data.csv` β€” sales dataset
29
+ - `synthetic_book_reviews.csv` β€” reviews dataset
30
+ - `style.css` β€” local styling with no background images
31
+ - `requirements.txt` β€” pinned Python dependencies
32
+
33
+ ## Environment variables
34
+
35
+ Optional variables for the AI tab:
36
+
37
+ - `HF_API_KEY`
38
+ - `MODEL_NAME`
39
+ - `HF_PROVIDER`
40
+ - `PAPERMILL_TIMEOUT`
41
+ - `AUTO_RUN_ON_LOAD`
42
+
43
+ ## Notes
44
+
45
+ The app creates notebook outputs inside:
46
+
47
+ - `artifacts/py/figures`
48
+ - `artifacts/py/tables`
49
+ - `runs/`
50
+
51
+ The app also sanitizes the notebook before execution so `!pip install ...` cells are skipped. Dependencies are handled by `requirements.txt`.