inoki-giskard commited on
Commit
aeabc6f
1 Parent(s): f5dcb41

Use `--hf-token` to pass Space token

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def run_ml_worker(url, api_key, hf_token):
65
  ml_worker = subprocess.Popen(
66
  [
67
  "giskard", "worker", "start",
68
- "-u", f"{url}", "-k", f"{api_key}", "-t", f"{hf_token}"
69
  ],
70
  stdout=open(LOG_FILE, "w"), stderr=subprocess.STDOUT
71
  )
 
65
  ml_worker = subprocess.Popen(
66
  [
67
  "giskard", "worker", "start",
68
+ "-u", f"{url}", "-k", f"{api_key}", "--hf-token", f"{hf_token}"
69
  ],
70
  stdout=open(LOG_FILE, "w"), stderr=subprocess.STDOUT
71
  )