Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files
app.py
CHANGED
@@ -829,8 +829,11 @@ def get_compute_points():
|
|
829 |
}
|
830 |
|
831 |
try:
|
|
|
|
|
|
|
832 |
headers = {
|
833 |
-
"Cookie":
|
834 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
|
835 |
}
|
836 |
|
|
|
829 |
}
|
830 |
|
831 |
try:
|
832 |
+
# 从USER_DATA元组中正确获取cookies
|
833 |
+
session, cookies, session_token, conversation_id, model_map = user_config
|
834 |
+
|
835 |
headers = {
|
836 |
+
"Cookie": cookies,
|
837 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36",
|
838 |
}
|
839 |
|