avalonai commited on
Commit
08aebc6
·
verified ·
1 Parent(s): b1a6a72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,3 +1,7 @@
1
  import gradio as gr
2
 
3
- gr.load("models/avalonai/whisper-small-jv").launch()
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ if hf_token is None:
4
+ raise ValueError("Hugging Face token not found. Please set the 'hf_token' environment variable.")
5
+
6
+ # Load the model using the access token
7
+ gr.load("models/avalonai/whisper-small-jv", hf_token=hf_token).launch()