Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
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()
|