Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,10 @@ HF_TOKEN = os.getenv('HF_TOKEN')
|
|
5 |
|
6 |
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "crowdsourced-speech-demo2")
|
7 |
|
8 |
-
iface = gr.Interface
|
9 |
-
"
|
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",
|
|
|
5 |
|
6 |
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "crowdsourced-speech-demo2")
|
7 |
|
8 |
+
iface = gr.Interface(
|
9 |
+
lambda x:"Test",
|
10 |
inputs="mic",
|
11 |
+
outputs="textbox",
|
12 |
title="Crowdsourced Dataset for Speech to Text",
|
13 |
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!",
|
14 |
allow_flagging="manual",
|