Update app.py
Browse files
app.py
CHANGED
|
@@ -364,7 +364,7 @@ from dotenv import load_dotenv
|
|
| 364 |
load_dotenv()
|
| 365 |
|
| 366 |
# Hugging Face configuration
|
| 367 |
-
HF_TOKEN = os.getenv("
|
| 368 |
TEXT_API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
|
| 369 |
IMAGE_API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
| 370 |
HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"} # Correct header format
|
|
|
|
| 364 |
load_dotenv()
|
| 365 |
|
| 366 |
# Hugging Face configuration
|
| 367 |
+
HF_TOKEN = os.getenv("HF_TOKEN") # Make sure this matches your .env variable name
|
| 368 |
TEXT_API_URL = "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2"
|
| 369 |
IMAGE_API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
| 370 |
HEADERS = {"Authorization": f"Bearer {HF_TOKEN}"} # Correct header format
|