devalender commited on
Commit
faa46a0
·
verified ·
1 Parent(s): 4210ef7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +29 -9
README.md CHANGED
@@ -1,15 +1,35 @@
1
  ---
2
- title: Mistral Document Namer
3
- emoji: 🏆
4
- colorFrom: purple
5
- colorTo: green
6
  sdk: gradio
7
- sdk_version: 6.14.0
8
- python_version: '3.13'
9
  app_file: app.py
10
  pinned: false
11
- license: mit
12
- short_description: mon systeme test
13
  ---
14
 
15
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: PDF Auto-Namer
3
+ emoji: 📄
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: "4.44.0"
 
8
  app_file: app.py
9
  pinned: false
10
+ license: apache-2.0
 
11
  ---
12
 
13
+ # 📄 PDF Auto-Namer
14
+
15
+ Uploadez un PDF, l'IA analyse la première page et vous propose un nom de fichier propre.
16
+
17
+ ## Fonctionnement
18
+
19
+ 1. Upload du PDF
20
+ 2. La première page est convertie en image (côté serveur)
21
+ 3. L'image + votre prompt sont envoyés à **Gemma 4 E4B-it** via l'Inference API HF
22
+ 4. Le modèle retourne un nom de fichier en snake_case
23
+
24
+ ## Configuration requise
25
+
26
+ Ajoutez votre token HF dans les **Secrets** du Space :
27
+ - Clé : `HF_TOKEN`
28
+ - Valeur : votre token `hf_xxxxx` (avec accès en lecture)
29
+
30
+ ## Stack technique
31
+
32
+ - `PyMuPDF` — extraction page PDF → image
33
+ - `Gradio` — interface web
34
+ - `huggingface_hub` — appel Inference API
35
+ - Modèle : `google/gemma-4-E4B-it` (multimodal, edge-optimized)