Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,10 @@ textile_designs = ['woven texture', 'embroidery', 'printed fabric', 'hand-dyed',
|
|
26 |
|
27 |
|
28 |
# Get Hugging Face Token from environment variable
|
29 |
-
HUGGING_FACE_TOKEN = os.getenv("
|
30 |
|
31 |
# Authenticate using the token
|
32 |
-
login(token =
|
33 |
if not hf_token:
|
34 |
raise ValueError("Hugging Face token is not set in the environment variables.")
|
35 |
login(token=hf_token)
|
|
|
26 |
|
27 |
|
28 |
# Get Hugging Face Token from environment variable
|
29 |
+
HUGGING_FACE_TOKEN = os.getenv("HUGGINGFACE_TOKEN")
|
30 |
|
31 |
# Authenticate using the token
|
32 |
+
login(token =HUGGINGFACE_TOKEN)
|
33 |
if not hf_token:
|
34 |
raise ValueError("Hugging Face token is not set in the environment variables.")
|
35 |
login(token=hf_token)
|