Spaces:
Sleeping
Sleeping
fanaf91318
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
import torch
|
4 |
-
|
5 |
-
|
6 |
# Load the Whisper pipeline
|
7 |
pipe = pipeline("automatic-speech-recognition",
|
8 |
model="fanaf91318/whisper-large-v3")
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
import torch
|
4 |
+
from huggingface_hub import login
|
5 |
+
login(token=os.environ.get("HF_TOKEN"))
|
6 |
# Load the Whisper pipeline
|
7 |
pipe = pipeline("automatic-speech-recognition",
|
8 |
model="fanaf91318/whisper-large-v3")
|