Enutrof commited on
Commit
6d84266
β€’
1 Parent(s): 54e60b1

Removed dataset link.

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -36,11 +36,11 @@ def predict(input):
36
  return [i.replace('▁', ' ') for i in predictions[0]]
37
 
38
 
39
- HF_TOKEN = os.getenv('english-pidgin-flagging')
40
- hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN,
41
- dataset_name="English-NigerianPidgin-Result-Validation",
42
- organization="Enutrof",
43
- )
44
  gr.Interface(
45
  fn=predict,
46
  inputs=gr.inputs.Textbox(lines=1, label="Input Text in English"),
@@ -64,5 +64,5 @@ gr.Interface(
64
  allow_flagging="manual",
65
  flagging_options=["translation 1 βœ…", "translation 2 βœ…",
66
  "translation 3 βœ…"],
67
- flagging_callback=hf_writer,
68
  ).launch(enable_queue=True)
 
36
  return [i.replace('▁', ' ') for i in predictions[0]]
37
 
38
 
39
+ # HF_TOKEN = os.getenv('english-pidgin-flagging')
40
+ # hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN,
41
+ # dataset_name="English-NigerianPidgin-Result-Validation",
42
+ # organization="Enutrof",
43
+ # )
44
  gr.Interface(
45
  fn=predict,
46
  inputs=gr.inputs.Textbox(lines=1, label="Input Text in English"),
 
64
  allow_flagging="manual",
65
  flagging_options=["translation 1 βœ…", "translation 2 βœ…",
66
  "translation 3 βœ…"],
67
+ #flagging_callback=hf_writer,
68
  ).launch(enable_queue=True)