YaserDS-777 commited on
Commit
26792fc
1 Parent(s): 6042b11

Update app.py

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