Spaces:
Sleeping
Sleeping
Create index.js
Browse files
index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const express = require('express');
|
| 2 |
+
const app = express();
|
| 3 |
+
const port = 7860; // এই পোর্টটিই ব্যবহার করবেন
|
| 4 |
+
|
| 5 |
+
app.get('/', (req, res) => {
|
| 6 |
+
res.send('Server is live on Hugging Face!');
|
| 7 |
+
});
|
| 8 |
+
|
| 9 |
+
app.listen(port, '0.0.0.0', () => {
|
| 10 |
+
console.log('Bot is running...');
|
| 11 |
+
});
|