Basti1110 commited on
Commit
85e39f5
·
verified ·
1 Parent(s): 6f9ff59

add dynamic ports

Browse files
Files changed (1) hide show
  1. app.js +2 -1
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 || 7860;
 
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'));