gulixin0922 commited on
Commit
488f79f
·
verified ·
1 Parent(s): b3f697c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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 == "":