apolinario commited on
Commit
ff399b1
·
1 Parent(s): d5fba7c

new attempt

Browse files
Files changed (1) hide show
  1. ui/src/app/api/hf-jobs/route.ts +5 -1
ui/src/app/api/hf-jobs/route.ts CHANGED
@@ -1035,7 +1035,11 @@ async function checkHFJobStatus(token: string, jobId: string, jobNamespace?: str
1035
  async function checkHFJobsCapacity(token: string): Promise<any> {
1036
  return new Promise((resolve, reject) => {
1037
  console.log('Checking HF Jobs capacity for namespace: lora-training-frenzi');
1038
- const args = ['jobs', 'ps', '--namespace', 'lora-training-frenzi'];
 
 
 
 
1039
 
1040
  const childProcess = spawn('hf', args, {
1041
  env: {
 
1035
  async function checkHFJobsCapacity(token: string): Promise<any> {
1036
  return new Promise((resolve, reject) => {
1037
  console.log('Checking HF Jobs capacity for namespace: lora-training-frenzi');
1038
+ const args = [
1039
+ 'jobs', 'ps',
1040
+ '--namespace', 'lora-training-frenzi',
1041
+ '--token', token
1042
+ ];
1043
 
1044
  const childProcess = spawn('hf', args, {
1045
  env: {