ewan-rvl commited on
Commit
f1e9b3e
·
1 Parent(s): 27b9ad2

First true version

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -60,11 +60,11 @@ def predict(text):
60
  is_toxic = detect_toxicity(text)
61
  return f"Is toxic: {is_toxic}"
62
 
63
- # Création de l'interface Gradio
64
  iface = gr.Interface(
65
  fn=predict,
66
- inputs=gr.inputs.Textbox(lines=5, label="Texte en français"),
67
- outputs="text",
68
  title="Détecteur de Toxicité",
69
  description="Entrez un texte en français pour vérifier s'il est toxique."
70
  )
 
60
  is_toxic = detect_toxicity(text)
61
  return f"Is toxic: {is_toxic}"
62
 
63
+ # Création de l'interface Gradio avec la nouvelle syntaxe
64
  iface = gr.Interface(
65
  fn=predict,
66
+ inputs=gr.Textbox(lines=5, label="Texte en français"),
67
+ outputs=gr.Textbox(label="Résultat"),
68
  title="Détecteur de Toxicité",
69
  description="Entrez un texte en français pour vérifier s'il est toxique."
70
  )