Skip to content

Commit 6b0a954

Browse files
committed
Removing older serverless import
1 parent 70027bd commit 6b0a954

File tree

7 files changed

+84
-76
lines changed

7 files changed

+84
-76
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can play the game and pit yourself against the models at [https://is-it-fake
1212

1313
This repo contains two applications:
1414

15-
1. [Is it (F)ake?!](./cake-app/) game, located in the `cake-app` folder where players can guess if the image is cake or not cake. This application is written using [React](https://react.dev/), [Elasticsearch Serverless Node.js client](https://github.com/elastic/elasticsearch-serverless-js) and [Netlify functions](https://www.netlify.com/platform/core/functions/).
15+
1. [Is it (F)ake?!](./cake-app/) game, located in the `cake-app` folder where players can guess if the image is cake or not cake. This application is written using [React](https://react.dev/), [Elasticsearch Node.js client](https://github.com/elastic/elasticsearch-js) and [Netlify functions](https://www.netlify.com/platform/core/functions/).
1616
2. The [Model Classification](./model-classification-app/) application is written in vanilla JavaScript, HTML and CSS. It is present in the `model-playground` folder and contains several useful elements:
1717
* A sample webpage showing predictions generated using the COCO-SD and MobileNet model on a sample image.
1818
* The [`classify-images.js`](./model-classification-app/scripts/classify-images.js) script includes a Node.js implementation generating image classifications of a set of source images for MobileNet and COCO-SSD. These results are persisted in Elasticsearch.

cake-game/package-lock.json

Lines changed: 47 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cake-game/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test-ct": "playwright test -c playwright-ct.config.ts"
1212
},
1313
"dependencies": {
14-
"@elastic/elasticsearch-serverless": "^0.3.0",
14+
"@elastic/elasticsearch": "^8.15.1",
1515
"@netlify/functions": "^2.6.0",
1616
"@playwright/experimental-ct-react": "1.42",
1717
"axios": "^1.6.8",

cake-game/src/util/elasticsearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client } from '@elastic/elasticsearch-serverless';
1+
import { Client } from '@elastic/elasticsearch';
22

33
const classificationsIndex = 'classifications';
44
const userClassificationsIndex = 'user-classifications';

model-classification-app/package-lock.json

Lines changed: 32 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model-classification-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "node ./bin/www"
77
},
88
"dependencies": {
9-
"@elastic/elasticsearch-serverless": "^0.2.0",
9+
"@elastic/elasticsearch": "^8.15.1",
1010
"@tensorflow-models/coco-ssd": "^2.2.3",
1111
"@tensorflow-models/mobilenet": "^2.1.1",
1212
"@tensorflow/tfjs-node": "^4.17.0",

model-classification-app/scripts/elasticsearch-util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { Client } = require("@elastic/elasticsearch-serverless");
1+
const { Client } = require("@elastic/elasticsearch");
22

33
const esClient = new Client({
44
cloud: { id: process.env.ELASTIC_CLOUD_ID },

0 commit comments

Comments
 (0)