Skip to content

Commit

Permalink
Merge pull request #994 from AI4Bharat/develop
Browse files Browse the repository at this point in the history
Shoonya v2.6.2
  • Loading branch information
ishvindersethi22 authored Apr 2, 2024
2 parents 5a47711 + 5846859 commit d1c4be8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
14 changes: 7 additions & 7 deletions src/ui/pages/container/Label-Studio/AllTaskLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ const LabelStudioWrapper = ({annotationNotesRef, loader, showLoader, hideLoader,
// debugger

useEffect(() => {
let sidePanel = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
getProjectsandTasks(projectId, taskId).then(
([labelConfig, taskData, annotations, predictions]) => {
let sidePanel = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
localStorage.setItem(
"labelStudio:settings",
JSON.stringify({
Expand All @@ -91,9 +93,7 @@ useEffect(() => {
showLineNumbers: false,
showPredictionsPanel: true,
sidePanelMode: "SIDEPANEL_MODE_REGIONS",
})
);
}, []);
}));});}, []);

useEffect(() => {
const showAssignedUsers = async () => {
Expand Down
13 changes: 7 additions & 6 deletions src/ui/pages/container/Label-Studio/LSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,12 @@ const LabelStudioWrapper = ({
}, [userData]); */

useEffect(() => {
let sidePanel = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
getProjectsandTasks(projectId, taskId).then(
([labelConfig, taskData, annotations, predictions]) => {
let sidePanel = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
localStorage.setItem(
"labelStudio:settings",
JSON.stringify({
Expand All @@ -240,8 +242,7 @@ const LabelStudioWrapper = ({
showLineNumbers: false,
showPredictionsPanel: true,
sidePanelMode: "SIDEPANEL_MODE_REGIONS",
})
);
}));});
}, []);

const tasksComplete = (id) => {
Expand Down
13 changes: 7 additions & 6 deletions src/ui/pages/container/Label-Studio/ReviewLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,12 @@ const LabelStudioWrapper = ({
}, [userData]); */

useEffect(() => {
let sidePanel = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
getProjectsandTasks(projectId, taskId).then(
([labelConfig, taskData, annotations, predictions]) => {
let sidePanel = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
localStorage.setItem(
"labelStudio:settings",
JSON.stringify({
Expand All @@ -300,8 +302,7 @@ useEffect(() => {
showPredictionsPanel: true,
sidePanelMode: "SIDEPANEL_MODE_REGIONS",
})
);
}, []);
);});}, []);

const tasksComplete = (id) => {
if (id) {
Expand Down
13 changes: 7 additions & 6 deletions src/ui/pages/container/Label-Studio/SuperCheckerLSF.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,12 @@ const LabelStudioWrapper = ({
}, [userData]); */

useEffect(() => {
let sidePanel = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = ProjectDetails?.project_type?.includes("OCRSegmentCategorization");
getProjectsandTasks(projectId, taskId).then(
([labelConfig, taskData, annotations, predictions]) => {
let sidePanel = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let showLabelsOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let selectAfterCreateOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
let continousLabelingOnly = labelConfig?.project_type?.includes("OCRSegmentCategorization");
localStorage.setItem(
"labelStudio:settings",
JSON.stringify({
Expand All @@ -221,8 +223,7 @@ useEffect(() => {
showPredictionsPanel: true,
sidePanelMode: "SIDEPANEL_MODE_REGIONS",
})
);
}, []);
);});},[]);

const tasksComplete = (id) => {
if (id) {
Expand Down

0 comments on commit d1c4be8

Please sign in to comment.