Nultx commited on
Commit
a925200
1 Parent(s): 53203ae

Update src/index.js

Browse files
Files changed (1) hide show
  1. src/index.js +6 -3
src/index.js CHANGED
@@ -158,6 +158,9 @@ app.get('/ping', (req, res) => {
158
 
159
  const PORT = process.env.PORT || 7860
160
  app.listen(PORT, () => console.log('App running on port', PORT))
161
- setInterval(() => fetch(`https://nultx-hent-ai.hf.space/ping`, { method: 'head' }).catch(console.log), 30 * 1000)
162
-
163
-
 
 
 
 
158
 
159
  const PORT = process.env.PORT || 7860
160
  app.listen(PORT, () => console.log('App running on port', PORT))
161
+ setInterval(() => {
162
+ axios.head('https://nultx-hent-ai.hf.space/ping')
163
+ .catch(error => {
164
+ console.log('Error:', error);
165
+ });
166
+ }, 30 * 1000);