Suzana commited on
Commit
28add7a
1 Parent(s): bd80851

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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=hf_writer
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();