Spaces:
Runtime error
Runtime error
Removed dataset link.
Browse files
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 |
-
|
42 |
-
|
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)
|