Update main.py
Browse files
main.py
CHANGED
|
@@ -41,6 +41,7 @@ if not HF_PASSWORD:
|
|
| 41 |
logging.basicConfig(format="%(asctime)s - %(levelname)s - %(message)s", level=logging.INFO)
|
| 42 |
logger = logging.getLogger(__name__)
|
| 43 |
|
|
|
|
| 44 |
# -------------------------
|
| 45 |
# Set up Hugging Chat integration
|
| 46 |
# -------------------------
|
|
@@ -48,7 +49,6 @@ logger = logging.getLogger(__name__)
|
|
| 48 |
try:
|
| 49 |
if HF_EMAIL and HF_PASSWORD:
|
| 50 |
logger.info("Logging into Hugging Face using provided credentials.")
|
| 51 |
-
# cookie_path_dir = "./cookies/" # NOTE: trailing slash (/) is required to avoid errors
|
| 52 |
sign = Login(HF_EMAIL, HF_PASSWORD)
|
| 53 |
cookies = sign.login(save_cookies=True)
|
| 54 |
print("cookies: ", cookies)
|
|
|
|
| 41 |
logging.basicConfig(format="%(asctime)s - %(levelname)s - %(message)s", level=logging.INFO)
|
| 42 |
logger = logging.getLogger(__name__)
|
| 43 |
|
| 44 |
+
print(f"Email: {HF_EMAIL[5:]}, Pass: {HF_PASSWORD[1:]}")
|
| 45 |
# -------------------------
|
| 46 |
# Set up Hugging Chat integration
|
| 47 |
# -------------------------
|
|
|
|
| 49 |
try:
|
| 50 |
if HF_EMAIL and HF_PASSWORD:
|
| 51 |
logger.info("Logging into Hugging Face using provided credentials.")
|
|
|
|
| 52 |
sign = Login(HF_EMAIL, HF_PASSWORD)
|
| 53 |
cookies = sign.login(save_cookies=True)
|
| 54 |
print("cookies: ", cookies)
|