Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import gradio as gr
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
# Get the Hugging Face API token from environment variables
|
| 6 |
-
api_token = os.getenv("
|
| 7 |
-
|
| 8 |
# Check if the API token is set
|
| 9 |
if not api_token:
|
| 10 |
raise ValueError("API token is not set. Please set the HUGGINGFACE_API_TOKEN environment variable.")
|
|
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
# Get the Hugging Face API token from environment variables
|
| 6 |
+
api_token = os.getenv("HUGGINGFACE_API_TOKEN_V")
|
| 7 |
+
print('----------------',api_token,'-----------------')
|
| 8 |
# Check if the API token is set
|
| 9 |
if not api_token:
|
| 10 |
raise ValueError("API token is not set. Please set the HUGGINGFACE_API_TOKEN environment variable.")
|