Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -20,7 +20,7 @@ app.get('/api/test', async (req, res) => {
|
|
| 20 |
|
| 21 |
// Test Express API POST method with variables
|
| 22 |
app.post('/api/chat', async (req, res) => {
|
| 23 |
-
const reqData = req.
|
| 24 |
const userInput = reqData.userInput;
|
| 25 |
|
| 26 |
const model = new LlamaModel({
|
|
|
|
| 20 |
|
| 21 |
// Test Express API POST method with variables
|
| 22 |
app.post('/api/chat', async (req, res) => {
|
| 23 |
+
const reqData = req.json();
|
| 24 |
const userInput = reqData.userInput;
|
| 25 |
|
| 26 |
const model = new LlamaModel({
|