Spaces:
Sleeping
Sleeping
Download server.js from DeepThoughtAI/prolog_llm: direct link, hf CLI and curl.
- Browser
- Download file 479 Bytes
-
https://huggingface.co/spaces/DeepThoughtAI/prolog_llm/resolve/main/server.js
- Command line
-
hf download hf://spaces/DeepThoughtAI/prolog_llm/server.js
-
curl -L -o server.js https://huggingface.co/spaces/DeepThoughtAI/prolog_llm/resolve/main/server.js
479 Bytes
| const express = require('express'); | |
| const path = require('path'); | |
| const app = express(); | |
| const PORT = process.env.PORT || 7860; | |
| // Serve static files from build directory | |
| app.use(express.static(path.join(__dirname, 'build'))); | |
| // Handle client-side routing - return index.html for all routes | |
| app.get('*', (req, res) => { | |
| res.sendFile(path.join(__dirname, 'build', 'index.html')); | |
| }); | |
| app.listen(PORT, '0.0.0.0', () => { | |
| console.log(`Server running on port ${PORT}`); | |
| }); | |