T0m4_ commited on
Commit
c1a4737
·
unverified ·
2 Parent(s): 7aaef8a 179efb9

Merge pull request #8 from Tbruand/dev

Browse files

chore(main): merge de la configuration CD vers la branche principale

Files changed (2) hide show
  1. .github/workflows/cd.yml +26 -0
  2. README.md +45 -0
.github/workflows/cd.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CD - Déploiement Hugging Face Space
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # 🛑 Le CD ne se déclenche que sur la branche main
7
+ workflow_dispatch: # 🔘 Option pour lancer manuellement le CD
8
+
9
+ jobs:
10
+ deploy:
11
+ needs: ci # ➕ Attend que le job CI passe avant de lancer le CD
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v3
17
+ with:
18
+ fetch-depth: 0
19
+ lfs: true
20
+
21
+ - name: Push to Hugging Face Space
22
+ env:
23
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
24
+ run: |
25
+ git remote add space https://Tbruand:[email protected]/spaces/Tbruand/toxicheck || true
26
+ git push space main --force
README.md CHANGED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: ToxiCheck
3
+ emoji: 🧪
4
+ colorFrom: indigo
5
+ colorTo: pink
6
+ sdk: gradio
7
+ sdk_version: 4.25.0
8
+ app_file: main.py
9
+ pinned: false
10
+ ---
11
+
12
+ # 🧪 ToxiCheck — Détection de commentaires toxiques en français
13
+
14
+ ToxiCheck est une interface Gradio qui permet de détecter automatiquement la toxicité d’un texte en français à l’aide d’un modèle **CamemBERT** fine-tuné.
15
+
16
+ Ce projet intègre :
17
+ - Une interface utilisateur interactive (via Gradio),
18
+ - Deux onglets : `Documentation` & `Inférence`,
19
+ - Un pipeline NLP complet : tokenizer, prédiction, interprétation.
20
+
21
+ ---
22
+
23
+ ## 🔗 Modèle utilisé
24
+
25
+ Modèle hébergé sur Hugging Face :
26
+ 👉 [ymokay/toxicheck-camembert](https://huggingface.co/ymokay/toxicheck-camembert)
27
+
28
+ ---
29
+
30
+ ## ⚙️ Technologies
31
+
32
+ - 🧠 Transformers (CamemBERT)
33
+ - 🖼️ Gradio
34
+ - 🧪 PyTorch
35
+ - 🐍 Python 3.10
36
+
37
+ ---
38
+
39
+ ## 🛠️ Lancement local
40
+
41
+ ```bash
42
+ git clone https://github.com/Tbruand/toxicheck.git
43
+ cd toxicheck
44
+ pip install -r requirements.txt
45
+ python main.py