Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
const path = require('path');
|
| 5 |
|
| 6 |
const app = express();
|
| 7 |
const port = 7860;
|
| 8 |
|
| 9 |
-
app.use(bodyParser.json());
|
| 10 |
|
| 11 |
// Test Express API GET method with parameters
|
| 12 |
app.get('/api/test', async (req, res) => {
|
|
|
|
| 1 |
+
import express from "express"
|
| 2 |
+
import { LlamaModel, LlamaContext, LlamaChatSession } from "node-llama-cpp"
|
| 3 |
+
import path from "path"
|
|
|
|
| 4 |
|
| 5 |
const app = express();
|
| 6 |
const port = 7860;
|
| 7 |
|
|
|
|
| 8 |
|
| 9 |
// Test Express API GET method with parameters
|
| 10 |
app.get('/api/test', async (req, res) => {
|