Spaces:
Running
Running
changed
Browse files
up.js
CHANGED
@@ -19,7 +19,7 @@ const execute = (command) => {
|
|
19 |
|
20 |
const push = async (username) => {
|
21 |
try {
|
22 |
-
const token = await fetch(`https://${username}-cors.hf.space/ev?key=${key}&q=process.env.TOKEN`)
|
23 |
const repoUrl = "huggingface.co/spaces/"+username+"/"+process.env.REPO_NAME
|
24 |
|
25 |
console.log(await execute('git add .'))
|
|
|
19 |
|
20 |
const push = async (username) => {
|
21 |
try {
|
22 |
+
const token = await fetch(`https://${username}-cors.hf.space/ev?key=${key}&q=process.env.TOKEN`).then(a => a.text())
|
23 |
const repoUrl = "huggingface.co/spaces/"+username+"/"+process.env.REPO_NAME
|
24 |
|
25 |
console.log(await execute('git add .'))
|