Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ class Constants:
|
|
14 |
IMAGE_GENERATION_API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
15 |
GPT_NEO_MODEL_NAME = "EleutherAI/gpt-neo-125M"
|
16 |
# Get the Hugging Face API token from environment variables
|
17 |
-
HEADERS = {"Authorization": f"Bearer {os.getenv('
|
18 |
|
19 |
# Translation Class
|
20 |
class Translator:
|
|
|
14 |
IMAGE_GENERATION_API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
|
15 |
GPT_NEO_MODEL_NAME = "EleutherAI/gpt-neo-125M"
|
16 |
# Get the Hugging Face API token from environment variables
|
17 |
+
HEADERS = {"Authorization": f"Bearer {os.getenv('HUGGINGFACE_API_KEY')}"}
|
18 |
|
19 |
# Translation Class
|
20 |
class Translator:
|