-
- Warning
-
Are you sure you want to
- delete
- this model?
-
This will delete all data
- associated
- with it!
-
-
-
-
+
+
+
+
+ Warning
+
Are you sure you want to
+ delete
+ this model?
+
This will delete all data
+ associated
+ with it!
+
+
+
+
\ No newline at end of file
diff --git a/src/app/model-download/components/model-download-component/model-download-component.component.scss b/src/app/model-download/components/model-download-component/model-download-component.component.scss
index e5e567c7..51cc90a0 100644
--- a/src/app/model-download/components/model-download-component/model-download-component.component.scss
+++ b/src/app/model-download/components/model-download-component/model-download-component.component.scss
@@ -1,3 +1,7 @@
.line-separator {
border-bottom: 1px gray dashed;
+}
+
+.height-dropdown {
+ max-height: calc(100vh - 400px);
}
\ No newline at end of file
diff --git a/src/app/model-download/components/model-download-component/model-download-component.component.ts b/src/app/model-download/components/model-download-component/model-download-component.component.ts
index 4a7aca2a..7b6f7567 100644
--- a/src/app/model-download/components/model-download-component/model-download-component.component.ts
+++ b/src/app/model-download/components/model-download-component/model-download-component.component.ts
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
-import { ActivatedRoute } from '@angular/router';
+import { ActivatedRoute, Router } from '@angular/router';
import { combineLatest, Subscription, timer } from 'rxjs';
import { first } from 'rxjs/operators';
import { ConfigManager } from 'src/app/base/services/config-service';
@@ -24,29 +24,32 @@ export class ModelDownloadComponentComponent implements OnInit {
projectId: string;
form: FormGroup;
models: any[] = [];
- isManaged: boolean = false;
+ isManaged: boolean = true;
currentModelHandle: any;
downloadedModels: any[];
subscriptions$: Subscription[] = [];
currentModel: any;
indexSeparator: number;
+ lastPage: string;
constructor(
private activatedRoute: ActivatedRoute,
private projectApolloService: ProjectApolloService,
private routeService: RouteService,
private informationSourceApolloService: WeakSourceApolloService,
- private formBuilder: FormBuilder
+ private formBuilder: FormBuilder,
+ private router: Router
) { }
ngOnInit(): void {
this.initForm();
this.routeService.updateActivatedRoute(this.activatedRoute);
this.projectId = this.activatedRoute.parent.snapshot.paramMap.get('projectId');
+ this.lastPage = this.activatedRoute.snapshot.queryParamMap.get('lastPage');
+
[this.projectQuery$, this.project$] = this.projectApolloService.getProjectByIdQuery(this.projectId);
[this.downloadedModelsQuery$, this.downloadedModelsList$] = this.informationSourceApolloService.getModelProviderInfo();
this.prepareModels();
- this.isManaged = ConfigManager.getIsManaged();
this.subscriptions$.push(
this.downloadedModelsList$.subscribe((downloadedModels) => {
@@ -57,6 +60,8 @@ export class ModelDownloadComponentComponent implements OnInit {
})
}));
+ this.checkIfManagedVersion();
+
NotificationService.subscribeToNotification(this, {
whitelist: ['model_provider_download'],
func: this.handleWebsocketNotification
@@ -104,7 +109,7 @@ export class ModelDownloadComponentComponent implements OnInit {
el.configString != 'bag-of-characters' && el.configString != 'bag-of-words' && el.configString != 'tf-idf');
models[1].forEach(model => model.isZeroShot = true);
models[1].sort((a, b) => a.prio - b.prio);
- this.indexSeparator = this.models.length-1;
+ this.indexSeparator = this.models.length - 1;
this.models.push(...models[1]);
});
@@ -165,4 +170,15 @@ export class ModelDownloadComponentComponent implements OnInit {
return findModel !== undefined ? true : false;
}
+ goBack() {
+ this.router.navigate(["../" + this.lastPage], { relativeTo: this.activatedRoute });
+ }
+
+ checkIfManagedVersion() {
+ if (!ConfigManager.isInit()) {
+ timer(250).subscribe(() => this.checkIfManagedVersion());
+ return;
+ }
+ this.isManaged = ConfigManager.getIsManaged();
+ }
}
diff --git a/src/app/projects/components/project-settings/project-settings.component.html b/src/app/projects/components/project-settings/project-settings.component.html
index 4095ad0a..82ea4104 100644
--- a/src/app/projects/components/project-settings/project-settings.component.html
+++ b/src/app/projects/components/project-settings/project-settings.component.html
@@ -103,7 +103,8 @@
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
Download records
-
+
@@ -181,7 +182,8 @@
@@ -273,635 +275,650 @@
-
-
-
-
-
You can enrich your records with
- embeddings, e.g. to use them for vector search or active transfer learning.
-
-
-
-
-
-
-
- Name |
-
- Type |
-
- Status |
-
- Dimensionality |
-
- Count |
-
- |
-
-
-
-
-
- {{embeddingContainer.name}}
- |
-
-
- {{embeddingContainer.type == 'ON_ATTRIBUTE'?
- 'Attribute Specific' : 'Token Specific'}}
-
- |
-
-
-
- {{embeddingContainer.state}}
-
+
+
- |
+
+
+
+
-
-
-
-
-
-
-
- Add an embedding
-
- Pick from the below solutions to build a vector representation
+
+
+
+
+
+
+ Add an embedding
+
+ Pick from the below solutions to build a vector representation
-
-
-
-
-
-
-
Info
+
+
+
+
+ Info
+
+
{{currentEmbeddingHandle.description}}
- {{currentEmbeddingHandle.description}}
-
-
+
+
-
-
-
- Labeling tasks
-
-
-
Define what kind of things you
- want to
- label. We currently support classifications and extractions.
-
-
-
+
-
-
-
-
-
-
-
- Add a labeling task
-
- Afterward, you can select the label task type depending on the target type
-
- Target
- attribute
-
- Name
-
-
-
-
-
+
+
+
+
+
+
+ Add a labeling task
+
+ Afterward, you can select the label task type depending on the target type
+
+ Target
+ attribute
+
+ Name
+
+
+
+
+
+
-
-
-
- Project metadata
-
-
Change your project name or
- description here.
-
-
-
-
-
-
-
Danger zone
-
This action can not be reversed.
- Are you sure you want to delete this project?
-
-
-
-
-
-
Label:
{{currentLabel.name}}
-
+
+
+
+
+
Label:
{{currentLabel.name}}
+
-
Pick a color:
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/zero-shot-details/component/zero-shot-details.component.html b/src/app/zero-shot-details/component/zero-shot-details.component.html
index 0d24aadc..7ad2e72d 100644
--- a/src/app/zero-shot-details/component/zero-shot-details.component.html
+++ b/src/app/zero-shot-details/component/zero-shot-details.component.html
@@ -103,7 +103,8 @@
Model