Chysev commited on
Commit
e04322d
·
verified ·
1 Parent(s): 1f7f4bc

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -5
index.js CHANGED
@@ -1,12 +1,10 @@
1
- const express = require('express');
2
- const bodyParser = require('body-parser');
3
- const { LlamaModel, LlamaContext, LlamaChatSession } = require('node-llama-cpp');
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) => {