Spaces:
Runtime error
Runtime error
Sandiago21
commited on
Commit
·
a5c0365
1
Parent(s):
4644758
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -2,13 +2,13 @@ import torch
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
model_id = "
|
6 |
pipe = pipeline("automatic-speech-recognition", model=model_id)
|
7 |
|
8 |
|
9 |
title = "Automatic Speech Recognition (ASR)"
|
10 |
description = """
|
11 |
-
Demo for automatic speech recognition in German. Demo uses [Sandiago21/whisper-large-v2-german](https://huggingface.co/Sandiago21/whisper-large-v2-german) checkpoint, which is based on OpenAI's
|
12 |
[Whisper](https://huggingface.co/openai/whisper-large-v2) model and is fine-tuned in German Audio dataset
|
13 |
![Automatic Speech Recognition (ASR)"](https://datasets-server.huggingface.co/assets/huggingface-course/audio-course-images/--/huggingface-course--audio-course-images/train/2/image/image.png "Diagram of Automatic Speech Recognition (ASR)")
|
14 |
"""
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
model_id = "Sandiago21/whisper-large-v2-german-2" # update with your model id
|
6 |
pipe = pipeline("automatic-speech-recognition", model=model_id)
|
7 |
|
8 |
|
9 |
title = "Automatic Speech Recognition (ASR)"
|
10 |
description = """
|
11 |
+
Demo for automatic speech recognition in German. Demo uses [Sandiago21/whisper-large-v2-german-2](https://huggingface.co/Sandiago21/whisper-large-v2-german-2) checkpoint, which is based on OpenAI's
|
12 |
[Whisper](https://huggingface.co/openai/whisper-large-v2) model and is fine-tuned in German Audio dataset
|
13 |
![Automatic Speech Recognition (ASR)"](https://datasets-server.huggingface.co/assets/huggingface-course/audio-course-images/--/huggingface-course--audio-course-images/train/2/image/image.png "Diagram of Automatic Speech Recognition (ASR)")
|
14 |
"""
|