Suzana's picture
Update app.py
bd80851
raw
history blame
367 Bytes
import gradio as gr
hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "emotion-detection-mistakes")
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=hf_writer
).launch();