Spaces:
Runtime error
Runtime error
Update app.py (#6)
Browse files- Update app.py (fcfc0e5e65501582d09d546c892dec17a74bd261)
app.py
CHANGED
|
@@ -16,10 +16,6 @@ pipe = pipeline(
|
|
| 16 |
device=device,
|
| 17 |
)
|
| 18 |
|
| 19 |
-
langs = model_info(MODEL_NAME).cardData["language"]
|
| 20 |
-
|
| 21 |
-
article = f"<details><summary>This model supports {len(langs)} languages! (Click to expand)</summary>> {langs}</details>"
|
| 22 |
-
|
| 23 |
def transcribe(microphone, file_upload):
|
| 24 |
warn_output = ""
|
| 25 |
if (microphone is not None) and (file_upload is not None):
|
|
@@ -75,7 +71,6 @@ mf_transcribe = gr.Interface(
|
|
| 75 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
| 76 |
" of arbitrary length."
|
| 77 |
),
|
| 78 |
-
article=article,
|
| 79 |
allow_flagging="never",
|
| 80 |
)
|
| 81 |
|
|
@@ -91,7 +86,6 @@ yt_transcribe = gr.Interface(
|
|
| 91 |
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files of"
|
| 92 |
" arbitrary length."
|
| 93 |
),
|
| 94 |
-
article=article,
|
| 95 |
allow_flagging="never",
|
| 96 |
)
|
| 97 |
|
|
|
|
| 16 |
device=device,
|
| 17 |
)
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
def transcribe(microphone, file_upload):
|
| 20 |
warn_output = ""
|
| 21 |
if (microphone is not None) and (file_upload is not None):
|
|
|
|
| 71 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
| 72 |
" of arbitrary length."
|
| 73 |
),
|
|
|
|
| 74 |
allow_flagging="never",
|
| 75 |
)
|
| 76 |
|
|
|
|
| 86 |
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files of"
|
| 87 |
" arbitrary length."
|
| 88 |
),
|
|
|
|
| 89 |
allow_flagging="never",
|
| 90 |
)
|
| 91 |
|