Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
|
@@ -26,10 +26,12 @@ try {
|
|
| 26 |
}
|
| 27 |
} catch (e) { console.error("Firebase Init Error:", e); }
|
| 28 |
|
|
|
|
| 29 |
const app = express();
|
| 30 |
const PORT = process.env.PORT || 7860;
|
| 31 |
const sysPrompts = JSON.parse(fs.readFileSync('./prompts.json', 'utf8'));
|
| 32 |
|
|
|
|
| 33 |
app.use(cors());
|
| 34 |
app.use(bodyParser.json({ limit: '50mb' }));
|
| 35 |
|
|
|
|
| 26 |
}
|
| 27 |
} catch (e) { console.error("Firebase Init Error:", e); }
|
| 28 |
|
| 29 |
+
|
| 30 |
const app = express();
|
| 31 |
const PORT = process.env.PORT || 7860;
|
| 32 |
const sysPrompts = JSON.parse(fs.readFileSync('./prompts.json', 'utf8'));
|
| 33 |
|
| 34 |
+
|
| 35 |
app.use(cors());
|
| 36 |
app.use(bodyParser.json({ limit: '50mb' }));
|
| 37 |
|