Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
ff399b1
1
Parent(s):
d5fba7c
new attempt
Browse files
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 = [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: {
|