File size: 462 Bytes
3af825f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 导入Express.js框架
const express = require('express');
const app = express();

// 设置端口号(Hugging Face默认端口)
const port = 8080;

// 定义根路由的GET请求
app.get('/', (req, res) => {
  // 发送一个简单的响应,表示狗狗币挖矿正在正常运行
  res.send('狗狗币挖矿正在正常运行...');
});

// 启动服务器
app.listen(port, () => {
  console.log(`服务器正在运行于 http://localhost:${port}`);
});