ICGenAIShare05 commited on
Commit
123064e
·
verified ·
1 Parent(s): 60708f8

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +29 -0
  2. app.py +0 -0
  3. requirements.txt +11 -0
README.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: One-Click E-commerce Listing Builder
3
+ sdk: gradio
4
+ app_file: app.py
5
+ pinned: false
6
+ ---
7
+
8
+ # One-Click E-commerce Listing Builder
9
+
10
+ This Space generates e-commerce listing copy, scene images, and a composed product webpage from one uploaded product image.
11
+
12
+ ## Runtime Requirements
13
+
14
+ - Recommended hardware: `NVIDIA GPU` (CPU is not practical for this app).
15
+ - Python dependencies are managed via `requirements.txt`.
16
+
17
+ ## Secrets and Variables
18
+
19
+ Set these in **Space Settings -> Variables and secrets**:
20
+
21
+ - `HF_TOKEN` (Secret, optional but recommended): token with access to required model repos.
22
+ - `VLM_MODEL_ID` (Variable, optional): defaults to `Qwen/Qwen2.5-VL-3B-Instruct`.
23
+ - `PRELOAD_MODELS` (Variable, optional): set to `1` to preload models at startup; default `0`.
24
+
25
+ ## Notes
26
+
27
+ - This app expects access to `black-forest-labs/FLUX.2-klein-9B` and the selected VLM model.
28
+ - The generated outputs are saved under `./ecom_output` and served through Gradio allowed paths.
29
+ - If startup is slow or fails, keep `PRELOAD_MODELS=0` and use the in-app warm-up button.
app.py ADDED
The diff for this file is too large to render. See raw diff
 
requirements.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ gradio>=5.0.0
2
+ numpy<2.2.0
3
+ pillow
4
+ requests
5
+ torch
6
+ accelerate
7
+ sentencepiece
8
+ huggingface_hub
9
+ bitsandbytes
10
+ git+https://github.com/huggingface/transformers.git
11
+ git+https://github.com/huggingface/diffusers.git