Files
AI-Studio/app/MindWork AI Studio/Assistants/ModelComparison/ModelComparisonBatchView.razor
T

49 lines
2.1 KiB
Plaintext

@inherits MSGComponentBase
@if (this.Batch is { SkipsRemainingVotes: true, IsFinished: false })
{
<MudPaper Outlined="true" Class="pa-4 mb-4">
<MudProgressLinear Color="Color.Primary" Indeterminate="true" Class="mb-3"/>
<MudText Typo="Typo.body1">
@TA("You skipped the remaining votes. The summary follows once the remaining runs are done.")
</MudText>
</MudPaper>
}
else if (this.IsComparing && this.Batch is { CurrentEntry: null } waitingBatch)
{
<MudPaper Outlined="true" Class="pa-4 mb-4">
@* The same waiting as in the chat: a bar, and lines where the answers will appear. Both columns look alike, so this says nothing about the models. *@
<MudProgressLinear Color="Color.Primary" Indeterminate="true" Class="mb-3"/>
<MudText Typo="Typo.body1" Class="mb-3">
@(waitingBatch.Entries.Count == 0 ? T("Both models are answering. This can take a while.") : T("Waiting for the next run..."))
</MudText>
<MudGrid Spacing="3">
<MudItem xs="12" md="6">
<MudText Typo="Typo.subtitle1">
@T("Answer A")
</MudText>
<MudSkeleton Width="30%" Height="42px"/>
<MudSkeleton Width="80%"/>
<MudSkeleton Width="100%"/>
</MudItem>
<MudItem xs="12" md="6">
<MudText Typo="Typo.subtitle1">
@T("Answer B")
</MudText>
<MudSkeleton Width="30%" Height="42px"/>
<MudSkeleton Width="80%"/>
<MudSkeleton Width="100%"/>
</MudItem>
</MudGrid>
</MudPaper>
}
else if (this.Batch is { CurrentEntry: { } entry } currentBatch)
{
<ModelComparisonVoting Batch="@currentBatch" Entry="@entry" Vote="@this.Vote" SkipThisRun="@this.SkipThisRun" SkipRemainingVotes="@this.SkipRemainingVotes" NextEntry="@this.NextEntry"/>
}
else if (this.Batch is { IsFinished: true } finishedBatch)
{
<ModelComparisonBatchSummary Batch="@finishedBatch" JudgeEnabled="@this.JudgeEnabled" StartNewBatch="@this.StartNewBatch" OpenResults="@this.OpenResults"/>
}