Skip to content

Commit 8cbd268

Browse files
Merge pull request #399 from jeafreezy/feat/replicable-model
Feat/Replicable Models
2 parents 7234a5d + a2f7aeb commit 8cbd268

71 files changed

Lines changed: 2266 additions & 1018 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/.env.sample

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,10 @@ VITE_MAXIMUM_PREDICTION_TOLERANCE = 10
203203
# The maximum area for a prediction to be considered valid when running prediction in the start mapping page.
204204
# Data type: Positive Integer (e.g., 20).
205205
# Default value: 20.
206-
VITE_MAXIMUM_PREDICTION_AREA = 20
206+
VITE_MAXIMUM_PREDICTION_AREA = 20
207+
208+
209+
# The base path to the base models.
210+
# Data type: String.
211+
# Default value:'/mnt/efsmount/data'
212+
VITE_FAIR_MODELS_BASE_PATH = '/mnt/efsmount/data'

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"terra-draw": "^1.3.0",
4747
"terra-draw-maplibre-gl-adapter": "^1.0.1",
4848
"vaul": "^1.1.2",
49-
"xmlbuilder2": "^3.1.1"
49+
"xmlbuilder2": "^3.1.1",
50+
"zustand": "^5.0.3"
5051
},
5152
"devDependencies": {
5253
"@eslint/js": "^9.9.0",

frontend/pnpm-lock.yaml

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

frontend/src/app/providers/models-provider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
import {
2323
showErrorToast,
2424
showSuccessToast,
25-
TMS_URL_REGEX_PATTERN,
25+
XYZ_TILESERVER_URL_REGEX_PATTERN,
2626
} from "@/utils";
2727
import React, {
2828
createContext,
@@ -76,7 +76,7 @@ export const FORM_VALIDATION_CONFIG = {
7676
minLength: 10,
7777
},
7878
[MODEL_CREATION_FORM_NAME.TMS_URL]: {
79-
pattern: TMS_URL_REGEX_PATTERN.source,
79+
pattern: XYZ_TILESERVER_URL_REGEX_PATTERN.source,
8080
},
8181
[MODEL_CREATION_FORM_NAME.MODEL_DESCRIPTION]: {
8282
maxLength: 500,
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { PageUnderConstruction } from "@/components/errors";
2-
import { useParams } from "react-router-dom";
32

43
export const TrainingDatasetsDetailPage = () => {
5-
const { id } = useParams();
6-
console.log(id);
74
return <PageUnderConstruction />;
85
};

0 commit comments

Comments
 (0)