Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,13 +3,13 @@ import gradio as gr
|
|
| 3 |
|
| 4 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
| 5 |
|
| 6 |
-
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "crowdsourced-speech-
|
| 7 |
|
| 8 |
iface = gr.Interface.load(
|
| 9 |
"models/facebook/wav2vec2-base-960h",
|
| 10 |
inputs="mic",
|
| 11 |
title="Crowdsourced Dataset for Speech to Text",
|
| 12 |
-
article="This demo uses facebook/wav2vec2-base-960h for a speech-to-text model. Any data that gets flagged is added to the crowdsourced *dataset* found here: [https://huggingface.co/datasets/abidlabs/crowdsourced-speech-
|
| 13 |
allow_flagging="manual",
|
| 14 |
flagging_callback=hf_writer)
|
| 15 |
|
|
|
|
| 3 |
|
| 4 |
HF_TOKEN = os.getenv('HF_TOKEN')
|
| 5 |
|
| 6 |
+
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "crowdsourced-speech-demo2")
|
| 7 |
|
| 8 |
iface = gr.Interface.load(
|
| 9 |
"models/facebook/wav2vec2-base-960h",
|
| 10 |
inputs="mic",
|
| 11 |
title="Crowdsourced Dataset for Speech to Text",
|
| 12 |
+
article="This demo uses facebook/wav2vec2-base-960h for a speech-to-text model. Any data that gets flagged is added to the crowdsourced *dataset* found here: [https://huggingface.co/datasets/abidlabs/crowdsourced-speech-demo2](https://huggingface.co/datasets/abidlabs/crowdsourced-speech-demo2). This Space is experimental, and please only flag data that you are comfortable adding to a public dataset!",
|
| 13 |
allow_flagging="manual",
|
| 14 |
flagging_callback=hf_writer)
|
| 15 |
|