Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
Update Data
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Mar 12, 2022
1 parent 72f977a commit e6bd2e7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions food-busters-ai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
VersionRejectReason,
} from "./lib";

const MinAppVersion = 321;
const MinWebVersion = 6;
const MinAppVersion = 405;
const MinWebVersion = 8;

const index: AzureFunction = async (context: Context, req: HttpRequest) => {
const { body, headers } = req;
Expand Down
15 changes: 8 additions & 7 deletions food-busters-ai/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ const labelMap: { [key: number]: { name: Label; nutrition: FoodNutrition } } = {
1: {
name: { en: "Omelet Rice", th: "ข้าวไข่เจียว" },
nutrition: {
carbohydrate: 65,
fat: 15,
protein: 20,
carbohydrate: 280,
fat: 180,
protein: 100,
pollution: 635,
},
},
2: {
name: { en: "Chicken Rice", th: "ข้าวมันไก่" },
nutrition: {
carbohydrate: 45,
fat: 25,
protein: 30,
carbohydrate: 280,
fat: 0,
protein: 640,
pollution: 848,
},
},
};

// const mroot = "food-busters-ai/model";
let net: tf.GraphModel;
let lnet: tf.LayersModel;

Expand Down
1 change: 1 addition & 0 deletions food-busters-ai/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export interface FoodNutrition {
carbohydrate: number;
fat: number;
protein: number;
pollution: number;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "food-busters-azure-functions",
"version": "1.0.16",
"version": "1.0.18",
"description": "Food Buster's Azure Functions",
"repository": "https://github.com/Food-Busters/azure-functions",
"author": "Leomotors",
Expand Down

0 comments on commit e6bd2e7

Please sign in to comment.