lidiapierre commited on
Commit
ec80443
1 Parent(s): 7d57482

Add application file

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "Detecting sexism in French"
4
+ description = """
5
+ ## Fine-tuning multilingual DistilBERT for binary classification of Sexist Language in French
6
+
7
+ Fine-tuned [distilbert-base-multilingual-cased](https://huggingface.co/distilbert-base-multilingual-cased) on
8
+ [lidiapierre/fr_sexism_labelled](https://huggingface.co/datasets/lidiapierre/fr_sexism_labelled), a dataset featuring
9
+ examples of statements of sexism in French.
10
+
11
+ """
12
+
13
+
14
+ gr.load(
15
+ "huggingface/lidiapierre/distilbert-base-multi-fr-sexism",
16
+ inputs=gr.Textbox(lines=5, label="Input Text", placeholder="Tu nages bien pour une femme"),
17
+ title=title,
18
+ description=description,
19
+ ).launch(share=True)
20
+