Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
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:
|