Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "emotion-detection-mistakes")
|
4 |
-
|
5 |
examples = ["I love you", "I lost my wallet"]
|
6 |
|
7 |
gr.Interface.load(
|
8 |
"huggingface/j-hartmann/emotion-english-distilroberta-base",
|
9 |
title="Basic emotion detection",
|
10 |
examples = examples,
|
11 |
-
allow_flagging="manual", flagging_callback=
|
12 |
|
13 |
).launch();
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
examples = ["I love you", "I lost my wallet"]
|
4 |
|
5 |
gr.Interface.load(
|
6 |
"huggingface/j-hartmann/emotion-english-distilroberta-base",
|
7 |
title="Basic emotion detection",
|
8 |
examples = examples,
|
9 |
+
allow_flagging="manual", flagging_callback=gradio.CSVLogger()
|
10 |
|
11 |
).launch();
|