show ml result without enabling ml sync
This commit is contained in:
parent
862db3238e
commit
5db40129b1
|
@ -46,7 +46,7 @@ import { Formik } from 'formik';
|
||||||
import * as Yup from 'yup';
|
import * as Yup from 'yup';
|
||||||
import EnteSpinner from 'components/EnteSpinner';
|
import EnteSpinner from 'components/EnteSpinner';
|
||||||
import EnteDateTimePicker from 'components/EnteDateTimePicker';
|
import EnteDateTimePicker from 'components/EnteDateTimePicker';
|
||||||
import { AppContext } from 'pages/_app';
|
// import { AppContext } from 'pages/_app';
|
||||||
|
|
||||||
import { MAX_EDITED_FILE_NAME_LENGTH } from 'constants/file';
|
import { MAX_EDITED_FILE_NAME_LENGTH } from 'constants/file';
|
||||||
import { sleep } from 'utils/common';
|
import { sleep } from 'utils/common';
|
||||||
|
@ -425,7 +425,7 @@ function InfoModal({
|
||||||
exif,
|
exif,
|
||||||
scheduleUpdate,
|
scheduleUpdate,
|
||||||
}) {
|
}) {
|
||||||
const appContext = useContext(AppContext);
|
// const appContext = useContext(AppContext);
|
||||||
const [updateMLDataIndex, setUpdateMLDataIndex] = useState(0);
|
const [updateMLDataIndex, setUpdateMLDataIndex] = useState(0);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -471,43 +471,43 @@ function InfoModal({
|
||||||
{constants.SHOW_MAP}
|
{constants.SHOW_MAP}
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
{appContext.mlSearchEnabled && (
|
{/* {appContext.mlSearchEnabled && ( */}
|
||||||
<>
|
<>
|
||||||
<div>
|
<div>
|
||||||
<Legend>{constants.PEOPLE}</Legend>
|
<Legend>{constants.PEOPLE}</Legend>
|
||||||
</div>
|
</div>
|
||||||
<PhotoPeopleList
|
<PhotoPeopleList
|
||||||
|
file={items[photoSwipe?.getCurrentIndex()]}
|
||||||
|
updateMLDataIndex={updateMLDataIndex}
|
||||||
|
/>
|
||||||
|
<div>
|
||||||
|
<Legend>{constants.UNIDENTIFIED_FACES}</Legend>
|
||||||
|
</div>
|
||||||
|
<UnidentifiedFaces
|
||||||
|
file={items[photoSwipe?.getCurrentIndex()]}
|
||||||
|
updateMLDataIndex={updateMLDataIndex}
|
||||||
|
/>
|
||||||
|
<div>
|
||||||
|
<Legend>{constants.OBJECTS}</Legend>
|
||||||
|
<ObjectLabelList
|
||||||
file={items[photoSwipe?.getCurrentIndex()]}
|
file={items[photoSwipe?.getCurrentIndex()]}
|
||||||
updateMLDataIndex={updateMLDataIndex}
|
updateMLDataIndex={updateMLDataIndex}
|
||||||
/>
|
/>
|
||||||
<div>
|
</div>
|
||||||
<Legend>{constants.UNIDENTIFIED_FACES}</Legend>
|
<div>
|
||||||
</div>
|
<Legend>{constants.TEXT}</Legend>
|
||||||
<UnidentifiedFaces
|
<WordList
|
||||||
file={items[photoSwipe?.getCurrentIndex()]}
|
file={items[photoSwipe?.getCurrentIndex()]}
|
||||||
updateMLDataIndex={updateMLDataIndex}
|
updateMLDataIndex={updateMLDataIndex}
|
||||||
/>
|
/>
|
||||||
<div>
|
</div>
|
||||||
<Legend>{constants.OBJECTS}</Legend>
|
<MLServiceFileInfoButton
|
||||||
<ObjectLabelList
|
file={items[photoSwipe?.getCurrentIndex()]}
|
||||||
file={items[photoSwipe?.getCurrentIndex()]}
|
updateMLDataIndex={updateMLDataIndex}
|
||||||
updateMLDataIndex={updateMLDataIndex}
|
setUpdateMLDataIndex={setUpdateMLDataIndex}
|
||||||
/>
|
/>
|
||||||
</div>
|
</>
|
||||||
<div>
|
{/* )} */}
|
||||||
<Legend>{constants.TEXT}</Legend>
|
|
||||||
<WordList
|
|
||||||
file={items[photoSwipe?.getCurrentIndex()]}
|
|
||||||
updateMLDataIndex={updateMLDataIndex}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<MLServiceFileInfoButton
|
|
||||||
file={items[photoSwipe?.getCurrentIndex()]}
|
|
||||||
updateMLDataIndex={updateMLDataIndex}
|
|
||||||
setUpdateMLDataIndex={setUpdateMLDataIndex}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{exif && (
|
{exif && (
|
||||||
<>
|
<>
|
||||||
<ExifData exif={exif} />
|
<ExifData exif={exif} />
|
||||||
|
|
Loading…
Reference in a new issue