mikr commited on
Commit
1031935
β€’
1 Parent(s): f0eb938
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +3 -3
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: W2v Bert2 Czech
3
  emoji: 🐒
4
  colorFrom: blue
5
  colorTo: yellow
 
1
  ---
2
+ title: W2V Bert2 Czech
3
  emoji: 🐒
4
  colorFrom: blue
5
  colorTo: yellow
app.py CHANGED
@@ -36,14 +36,14 @@ def transcribe(audio_path):
36
  iface = gr.Interface(
37
  fn=transcribe,
38
  inputs=[
39
- gr.File(type="filepath", label="Upload Audio File"), # Audio file upload
40
  ],
41
  outputs="text",
42
  theme="huggingface",
43
- title="Czech W2v-BERT 2.0 speech encoder demo - transcribe Czech Audio",
44
  description=(
45
  "Transcribe audio inputs with the click of a button! Demo uses the fine-tuned"
46
- f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) from Facebook W2v-BERT 2.0 speech encoder "
47
  "and πŸ€— Transformers to transcribe audio files of arbitrary length."
48
  ),
49
  allow_flagging="never",
 
36
  iface = gr.Interface(
37
  fn=transcribe,
38
  inputs=[
39
+ gr.Audio(sources="upload", type="filepath", label="Upload Audio File"), # Audio file upload
40
  ],
41
  outputs="text",
42
  theme="huggingface",
43
+ title="Czech W2V-BERT 2.0 speech encoder demo - transcribe Czech Audio",
44
  description=(
45
  "Transcribe audio inputs with the click of a button! Demo uses the fine-tuned"
46
+ f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) from Facebook W2V-BERT 2.0 speech encoder "
47
  "and πŸ€— Transformers to transcribe audio files of arbitrary length."
48
  ),
49
  allow_flagging="never",