Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -119,10 +119,13 @@ os.environ["HUGGINGFACEHUB_API_TOKEN"] = HUGGINGFACEHUB_API_TOKEN
|
|
119 |
|
120 |
###############################################
|
121 |
#Alternativ: HuggingChat API nutzen
|
122 |
-
pw="
|
123 |
-
email="
|
124 |
sign = Login(email, pw)
|
125 |
cookies = sign.login()
|
|
|
|
|
|
|
126 |
|
127 |
|
128 |
################################################
|
|
|
119 |
|
120 |
###############################################
|
121 |
#Alternativ: HuggingChat API nutzen
|
122 |
+
pw=os.getenv("HFPW")
|
123 |
+
email= os.getenv("HFEMail")
|
124 |
sign = Login(email, pw)
|
125 |
cookies = sign.login()
|
126 |
+
# Save cookies to the local directory
|
127 |
+
cookie_path_dir = "cookies_hf"
|
128 |
+
sign.saveCookiesToDir(cookie_path_dir)
|
129 |
|
130 |
|
131 |
################################################
|