Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
wrong url
Browse files
server.js
CHANGED
@@ -20,7 +20,7 @@ app.listen(3000, () => {
|
|
20 |
|
21 |
cron.schedule("0 * * * *", async () => {
|
22 |
console.log('Scraping models', process.env.SPACE_HOST)
|
23 |
-
const request = await fetch(
|
24 |
method: 'POST',
|
25 |
headers: {
|
26 |
'Content-Type': 'application/json',
|
|
|
20 |
|
21 |
cron.schedule("0 * * * *", async () => {
|
22 |
console.log('Scraping models', process.env.SPACE_HOST)
|
23 |
+
const request = await fetch(`https://${process.env.SPACE_HOST}/api/scrap-models`, {
|
24 |
method: 'POST',
|
25 |
headers: {
|
26 |
'Content-Type': 'application/json',
|