osanseviero commited on
Commit
26359d2
1 Parent(s): 6a27e5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -14,7 +14,9 @@ hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "huggingface/bloom_internal
14
 
15
 
16
  examples = [
17
- ['A "whatpu" is a small, furry animal native to Tanzania. An example of a sentence that uses the word whatpu is: We were traveling in Africa and we saw these very cute whatpus. To do a "farduddle" means to jump up and down really fast. An example of a sentence that uses the word farduddle is:', 8, 0.1, 0, 0.9, False]
 
 
18
  ]
19
 
20
  def safe_text(text):
@@ -60,7 +62,6 @@ gr.Interface(
60
  # article=article,
61
  title=title,
62
  description=description,
63
- flagging_options=["save"],
64
  flagging_callback=hf_writer,
65
  allow_flagging=True,
66
  ).launch()
 
14
 
15
 
16
  examples = [
17
+ ['A "whatpu" is a small, furry animal native to Tanzania. An example of a sentence that uses the word whatpu is: We were traveling in Africa and we saw these very cute whatpus. To do a "farduddle" means to jump up and down really fast. An example of a sentence that uses the word farduddle is:', 8, 0.1, 0, 0.9, False],
18
+ ['def quicksort(l):', 8, 0.1, 0, 0.9, False],
19
+ ['Q: ¿Cómo te llamas? A: What is your name? Q: ¿Qué edad tienes? A: How old are you? Q: ¿Dónde vives?', 8, 0.1, 0, 0.9, False]
20
  ]
21
 
22
  def safe_text(text):
 
62
  # article=article,
63
  title=title,
64
  description=description,
 
65
  flagging_callback=hf_writer,
66
  allow_flagging=True,
67
  ).launch()