File size: 288 Bytes
18eed12
 
5ea71ec
 
 
 
 
 
6e8f772
5ea71ec
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

examples = ["I love you", "I lost my wallet"]

gr.Interface.load(
    "huggingface/j-hartmann/emotion-english-distilroberta-base",
    title="Basic emotion detection",
    examples = examples,
    allow_flagging="manual", flagging_callback=gr.CSVLogger()

).launch();