Update internal bindings to new names
This commit is contained in:
@@ -19,19 +19,28 @@
|
||||
</div>
|
||||
|
||||
<div class="main-area">
|
||||
<button @onclick="pullData">@buttonText</button>
|
||||
<button @onclick="pullandtrain">@button1Text</button>
|
||||
<button @onclick="predict">@button2Text</button>
|
||||
</div>
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
string buttonText = "Pull finance data";
|
||||
string button1Text = "Train AI";
|
||||
string button2Text = "Predict AI";
|
||||
|
||||
async Task pullData(){
|
||||
buttonText = "Do not refresh the page. The data is refreshing.";
|
||||
async Task pullandtrain(){
|
||||
button1Text = "Do not refresh the page. The data is refreshing.";
|
||||
await Task.Delay(1);
|
||||
aiModule.PullData();
|
||||
buttonText = "Refresh Completed";
|
||||
aiModule.TrainAI();
|
||||
button1Text = "Refresh Completed";
|
||||
}
|
||||
|
||||
async Task predict(){
|
||||
button1Text = "Do not refresh the page. The data is refreshing.";
|
||||
await Task.Delay(1);
|
||||
aiModule.TrainAI();
|
||||
button1Text = "Refresh Completed";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user