File size: 292 Bytes
3ece550
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
from app.handler import predict

def launch_app():
    iface = gr.Interface(
        fn=predict,
        inputs="text",
        outputs="label",
        title="🧪 ToxiCheck",
        description="Entrez un texte pour détecter s'il est toxique."
    )
    iface.launch()