@foreach(double cur in predictions){
@cur
}
@code {
string button1Text = "Train AI";
string button2Text = "Predict AI";
double[] predictions = {};
async Task pullandtrain(){
button1Text = "Do not refresh the page. The data is refreshing.";
await Task.Delay(1);
aiModule.TrainAI();
button1Text = "Refresh Completed";
}
async Task predict(){
button2Text = "Do not refresh the page. The data is refreshing.";
await Task.Delay(1);
predictions = aiModule.PredictAI();
button2Text = "Refresh Completed";
}
}