fanaf91318 commited on
Commit
f3a4281
·
verified ·
1 Parent(s): 4b8a8ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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")