Update internal bindings to new names

This commit is contained in:
2026-02-17 19:04:35 -08:00
parent 8791c83991
commit b1a64be367
2 changed files with 16 additions and 7 deletions
+15 -6
View File
@@ -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";
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ using DataBase;
#endif
if (args.Contains("Pull-Stock-Data")) {
interopModule.PullData();
interopModule.TrainAI();
} else {
// Create the webapp
var builder = WebApplication.CreateBuilder(args);