Spaces:
Runtime error
Runtime error
Commit
·
00e31d2
1
Parent(s):
a0e2eec
limit q and link to repo
Browse files
app.py
CHANGED
@@ -13,12 +13,12 @@ from transformers.pipelines.audio_utils import ffmpeg_read
|
|
13 |
|
14 |
title = "Whisper JAX: The Fastest Whisper API ⚡️"
|
15 |
|
16 |
-
description = "Whisper JAX is an optimised implementation of the [Whisper model](https://huggingface.co/openai/whisper-large-v2) by OpenAI. It runs on JAX with a TPU v4-8 in the backend. Compared to PyTorch on an A100 GPU, it is over **70x** faster, making it the fastest Whisper API available."
|
17 |
|
18 |
API_URL = os.getenv("API_URL")
|
19 |
API_URL_FROM_FEATURES = os.getenv("API_URL_FROM_FEATURES")
|
20 |
|
21 |
-
article = "Whisper large-v2 model by OpenAI. Backend running JAX on a TPU v4-8 through the generous support of the [TRC](https://sites.research.google/trc/about/) programme. Whisper JAX code and Gradio demo by 🤗 Hugging Face."
|
22 |
|
23 |
language_names = sorted(TO_LANGUAGE_CODE.keys())
|
24 |
CHUNK_LENGTH_S = 30
|
@@ -161,5 +161,5 @@ if __name__ == "__main__":
|
|
161 |
with demo:
|
162 |
gr.TabbedInterface([audio_chunked, youtube], ["Transcribe Audio", "Transcribe YouTube"])
|
163 |
|
164 |
-
demo.queue()
|
165 |
demo.launch()
|
|
|
13 |
|
14 |
title = "Whisper JAX: The Fastest Whisper API ⚡️"
|
15 |
|
16 |
+
description = "Whisper JAX is an optimised implementation of the [Whisper model](https://huggingface.co/openai/whisper-large-v2) by OpenAI. It runs on JAX with a TPU v4-8 in the backend. Compared to PyTorch on an A100 GPU, it is over [**70x** faster](https://github.com/sanchit-gandhi/whisper-jax#benchmarks), making it the fastest Whisper API available."
|
17 |
|
18 |
API_URL = os.getenv("API_URL")
|
19 |
API_URL_FROM_FEATURES = os.getenv("API_URL_FROM_FEATURES")
|
20 |
|
21 |
+
article = "Whisper large-v2 model by OpenAI. Backend running JAX on a TPU v4-8 through the generous support of the [TRC](https://sites.research.google/trc/about/) programme. Whisper JAX [code](https://github.com/sanchit-gandhi/whisper-jax) and Gradio demo by 🤗 Hugging Face."
|
22 |
|
23 |
language_names = sorted(TO_LANGUAGE_CODE.keys())
|
24 |
CHUNK_LENGTH_S = 30
|
|
|
161 |
with demo:
|
162 |
gr.TabbedInterface([audio_chunked, youtube], ["Transcribe Audio", "Transcribe YouTube"])
|
163 |
|
164 |
+
demo.queue(max_size=10)
|
165 |
demo.launch()
|