Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,7 @@
|
|
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.")
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
|
4 |
+
hf_token = os.getenv("hf_token")
|
5 |
|
6 |
if hf_token is None:
|
7 |
raise ValueError("Hugging Face token not found. Please set the 'hf_token' environment variable.")
|