Spaces:
Sleeping
Sleeping
add dynamic ports
Browse files
app.js
CHANGED
|
@@ -5,7 +5,8 @@ import { GoogleGenerativeAI } from '@google/generative-ai';
|
|
| 5 |
|
| 6 |
dotenv.config();
|
| 7 |
const app = express();
|
| 8 |
-
const port = process.env.PORT
|
|
|
|
| 9 |
|
| 10 |
app.use(bodyParser.urlencoded({ extended: true }));
|
| 11 |
app.use(express.static('public'));
|
|
|
|
| 5 |
|
| 6 |
dotenv.config();
|
| 7 |
const app = express();
|
| 8 |
+
const port = process.env.PORT; // Hugging Face will set this dynamically
|
| 9 |
+
|
| 10 |
|
| 11 |
app.use(bodyParser.urlencoded({ extended: true }));
|
| 12 |
app.use(express.static('public'));
|