gokilashree commited on
Commit
1e434ee
·
verified ·
1 Parent(s): 95431fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ tokenizer = MBart50Tokenizer.from_pretrained(model_name)
11
  model = MBartForConditionalGeneration.from_pretrained(model_name)
12
 
13
  # Use the Hugging Face API key from environment variables for text-to-image model
14
- hf_api_key = os.getenv("full_token")
15
  if hf_api_key is None:
16
  raise ValueError("Hugging Face API key not found! Please set 'full_token' environment variable.")
17
  else:
 
11
  model = MBartForConditionalGeneration.from_pretrained(model_name)
12
 
13
  # Use the Hugging Face API key from environment variables for text-to-image model
14
+ hf_api_key = os.getenv("new_hf_token")
15
  if hf_api_key is None:
16
  raise ValueError("Hugging Face API key not found! Please set 'full_token' environment variable.")
17
  else: