Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
import os
|
2 |
|
3 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
4 |
-
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "
|
5 |
|
6 |
iface = gr.Interface(
|
7 |
calculator,
|
8 |
["number", gr.Radio(["add", "subtract", "multiply", "divide"]), "number"],
|
9 |
"number",
|
10 |
-
description="Check out the crowd-sourced dataset at: [https://huggingface.co/datasets/aliabd/crowdsourced-calculator-demo](https://huggingface.co/datasets/aliabd/crowdsourced-calculator-demo)",
|
11 |
allow_flagging="manual",
|
12 |
flagging_options=["wrong sign", "off by one", "other"],
|
13 |
flagging_callback=hf_writer
|
|
|
1 |
import os
|
2 |
|
3 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
4 |
+
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "save_audio")
|
5 |
|
6 |
iface = gr.Interface(
|
7 |
calculator,
|
8 |
["number", gr.Radio(["add", "subtract", "multiply", "divide"]), "number"],
|
9 |
"number",
|
10 |
+
#description="Check out the crowd-sourced dataset at: [https://huggingface.co/datasets/aliabd/crowdsourced-calculator-demo](https://huggingface.co/datasets/aliabd/crowdsourced-calculator-demo)",
|
11 |
allow_flagging="manual",
|
12 |
flagging_options=["wrong sign", "off by one", "other"],
|
13 |
flagging_callback=hf_writer
|