Spaces:
Sleeping
Sleeping
File size: 3,176 Bytes
1bc149f 4bb8324 1bc149f 27e40c0 1bc149f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
<!----
This component is for submitting a model for evaluation.
It is a form that takes in the model name, the model file, and the model's description.
---->
<mat-card>
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<mat-card-content>
<mat-form-field appearance="outline" style="width: 100%">
<mat-label>Team Name</mat-label>
<input matInput formControlName="teamName" placeholder="Team Name" type="text">
</mat-form-field>
</mat-card-content>
<mat-card-content>
<mat-form-field appearance="outline" style="width: 100%">
<mat-label>Contact Email</mat-label>
<input matInput formControlName="contactEmail" placeholder="Contact Email" type="text" email>
</mat-form-field>
</mat-card-content>
<mat-card-content>
<mat-form-field appearance="outline" style="width: 100%">
<mat-label>Model Name</mat-label>
<input matInput formControlName="modelName" placeholder="Model Name" type="text">
</mat-form-field>
</mat-card-content>
<mat-card-content>
<mat-form-field appearance="outline" style="width: 100%">
<mat-label>Model Link</mat-label>
<input formControlName="modelLink" matInput placeholder="Model Link" type="text">
</mat-form-field>
</mat-card-content>
<mat-card-content>
<mat-form-field appearance="outline" style="width: 100%">
<mat-label>Task</mat-label>
<mat-select formControlName="task">
@for (task of tasks | async; track task) {
<mat-option [value]="task.name">{{ task.name }}</mat-option>
}
</mat-select>
</mat-form-field>
</mat-card-content>
<mat-card-content>
<mat-form-field appearance="outline" style="width: 100%">
<mat-label>Dataset</mat-label>
<mat-select formControlName="dataset">
@for (dataset of datasets|async; track dataset) {
<mat-option [value]="dataset.name">{{ dataset.name }} ({{dataset.task}})</mat-option>
}
</mat-select>
</mat-form-field>
</mat-card-content>
<mat-card-actions>
<button type="button" style="width: 100%" mat-raised-button (click)="predsFileInput.click()">Upload Model
Predictions {{ chosenFileName != '' ? ' - ' + chosenFileName : '' }}
</button>
<input hidden type="file" #predsFileInput formControlName="file" required (change)="onFileSelected($event)"/>
</mat-card-actions>
<br>
<mat-card-content>
<mat-form-field appearance="outline" style="width: 100%">
<mat-label>Make Predictions Public</mat-label>
<mat-select formControlName="isPublic" required>
<mat-option value="true">Yes</mat-option>
<mat-option value="false">No</mat-option>
</mat-select>
</mat-form-field>
</mat-card-content>
<mat-card-actions>
<button type="submit" mat-raised-button style="width: 100%" color="primary">
Submit
<label *ngIf="message != ''"> - {{ message }}</label>
</button>
</mat-card-actions>
</form>
</mat-card>
<br>
<mat-card>
<app-submitting-guide></app-submitting-guide>
</mat-card>
|