Spaces:
Running
Running
gulixin0922
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -244,7 +244,12 @@ def http_bot(
|
|
244 |
|
245 |
worker_addr = os.environ.get("WORKER_ADDR", "")
|
246 |
api_token = os.environ.get("API_TOKEN", "")
|
247 |
-
headers = {"Authorization": f"{api_token}", "Content-Type": "application/json"}
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
# No available worker
|
250 |
if worker_addr == "":
|
|
|
244 |
|
245 |
worker_addr = os.environ.get("WORKER_ADDR", "")
|
246 |
api_token = os.environ.get("API_TOKEN", "")
|
247 |
+
# headers = {"Authorization": f"{api_token}", "Content-Type": "application/json"}
|
248 |
+
headers = {
|
249 |
+
"Authorization": f"Bearer {api_token}",
|
250 |
+
"Content-Type": "application/json",
|
251 |
+
"Cookie": "acw_tc=65efca1a-119e-4da4-8fd6-338f5b70f29afaa1be67470ba113e38318b0208a00b2"
|
252 |
+
}
|
253 |
|
254 |
# No available worker
|
255 |
if worker_addr == "":
|