Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ tokenizer = MBart50Tokenizer.from_pretrained(model_name)
|
|
20 |
model = MBartForConditionalGeneration.from_pretrained(model_name)
|
21 |
|
22 |
# Use the Hugging Face API key from environment variables for text-to-image model
|
23 |
-
hf_api_key = os.getenv("
|
24 |
if hf_api_key is None:
|
25 |
raise ValueError("Hugging Face API key not found! Please set 'hf_token' environment variable.")
|
26 |
else:
|
|
|
20 |
model = MBartForConditionalGeneration.from_pretrained(model_name)
|
21 |
|
22 |
# Use the Hugging Face API key from environment variables for text-to-image model
|
23 |
+
hf_api_key = os.getenv("full_token")
|
24 |
if hf_api_key is None:
|
25 |
raise ValueError("Hugging Face API key not found! Please set 'hf_token' environment variable.")
|
26 |
else:
|