jsakshi commited on
Commit
fe2994b
·
verified ·
1 Parent(s): a639353

Update app.py

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