{/* Show logs only in modal and when status failed */}
{isTrainingDetailsDialog && data?.status === TrainingStatus.FAILED && (
@@ -221,7 +222,7 @@ const ModelProperties: React.FC = ({
input_contact_spacing,
input_boundary_width,
source_imagery,
- trainingResultsGraph
+ trainingResultsGraph,
]);
return isError ? (
diff --git a/frontend/src/features/models/components/training-history-table.tsx b/frontend/src/features/models/components/training-history-table.tsx
index 694eff77..572ba2aa 100644
--- a/frontend/src/features/models/components/training-history-table.tsx
+++ b/frontend/src/features/models/components/training-history-table.tsx
@@ -30,7 +30,7 @@ type TrainingHistoryTableProps = {
modelId: string;
trainingId: number;
modelOwner: string;
- datasetId:number
+ datasetId: number;
};
const columnDefinitions = (
@@ -226,7 +226,7 @@ const TrainingHistoryTable: React.FC = ({
trainingId,
modelId,
modelOwner,
- datasetId
+ datasetId,
}) => {
const [offset, setOffset] = useState(0);
const { data, isPending, isPlaceholderData } = useTrainingHistory(
diff --git a/frontend/src/services/api-routes.ts b/frontend/src/services/api-routes.ts
index 95c7d597..d0c3ed26 100644
--- a/frontend/src/services/api-routes.ts
+++ b/frontend/src/services/api-routes.ts
@@ -7,6 +7,10 @@ export const API_ENDPOINTS = {
AUTH_CALLBACK: "auth/callback/",
USER: "auth/me/",
+ //KPIs
+
+ GET_KPI_STATS: "kpi/stats/ ",
+
//Models
GET_MODELS: "model/",
GET_MODEL_DETAILS: (id: string) => `model/${id}`,
diff --git a/frontend/src/utils/content.ts b/frontend/src/utils/content.ts
index 5b14c15a..32a8ef60 100644
--- a/frontend/src/utils/content.ts
+++ b/frontend/src/utils/content.ts
@@ -73,10 +73,10 @@ export const APP_CONTENT = {
ctaSecondaryButton: "Start Mapping",
jumbotronImageAlt: "A user engaging in a mapping activity",
kpi: {
- publishedAIModels:"Published AI Models",
- totalUsers:"Total Registered Users",
+ publishedAIModels: "Published AI Models",
+ totalUsers: "Total Registered Users",
humanFeedback: "Human Feedbacks",
- acceptedPrediction: "Accepted Prediction"
+ acceptedPrediction: "Accepted Prediction",
},
aboutTitle: "WHAT IS fAIr?",
aboutContent: `fAIr is an open AI-assisted mapping service developed by the Humanitarian OpenStreetMap Team (HOT) that aims to improve the efficiency and accuracy of mapping efforts for humanitarian purposes. The service uses AI models, specifically computer vision techniques, to detect objects in satellite and UAV imagery.`,
@@ -144,7 +144,7 @@ export const APP_CONTENT = {
{
question: "Can I use fAIr without having a sound knowledge of AI?",
answer:
- "fAIr is design for users without the need for python or any programming skills. However, basic knowledge in humanitarian mapping and Geographical Information Systems (GIS) would be sufficient for self exploration.",
+ "fAIr is designed for users without the need for Python or any programming skills. However, basic knowledge in humanitarian mapping and Geographical Information Systems (GIS) would be sufficient for self exploration.",
},
],
},
@@ -158,7 +158,9 @@ export const APP_CONTENT = {
callToAction: {
title: `We can't do it without you`,
ctaButton: "Join The Community",
- paragraph: "fAIr is a collaborative project. We welcome all types of experience to join our community on HOTOSM Slack. There is always a room for AI/ML for earth observation expertise, community engagement enthusiastic, academic researcher or student looking for an academic challenge around social impact."
+ ctaLink: "https://slack.hotosm.org",
+ paragraph:
+ "fAIr is a collaborative project. We welcome all types of experience to join our community on HOTOSM Slack. There is always a room for AI/ML for earth observation expertise, community engagement enthusiastic, academic researcher or student looking for an academic challenge around social impact.",
},
},
pageNotFound: {
@@ -212,7 +214,7 @@ export const APP_CONTENT = {
},
},
modelsDetailsCard: {
- modelId: "Model ID",
+ modelId: "Model ID:",
detailsSectionTitle: "Details",
createdBy: "Created By",
createdOn: "Created On",