You've already forked DataMate
feat: Labeling Frontend adaptations + Backend build and deploy + Logging improvement (#55)
* feat: Front-end data annotation page adaptation to the backend API. * feat: Implement labeling configuration editor and enhance annotation task creation form * feat: add python backend build and deployment; add backend configuration for Label Studio integration and improve logging setup * refactor: remove duplicate log configuration
This commit is contained in:
@@ -47,11 +47,10 @@ export default function DataAnnotation() {
|
||||
let mounted = true;
|
||||
(async () => {
|
||||
try {
|
||||
const cfg = await getConfigUsingGet();
|
||||
const url = cfg?.data?.labelStudioUrl || "";
|
||||
if (mounted) setLabelStudioBase((url).replace(/\/+$/, "") || null);
|
||||
const baseUrl = `http://${window.location.hostname}:8000`;
|
||||
if (mounted) setLabelStudioBase(baseUrl);
|
||||
} catch (e) {
|
||||
if (mounted) setLabelStudioBase(null);
|
||||
if (mounted) setLabelStudioBase(null);
|
||||
}
|
||||
})();
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user