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>
<div class="main-area"> <div class="main-area">
<button @onclick="pullData">@buttonText</button> <button @onclick="pullandtrain">@button1Text</button>
<button @onclick="predict">@button2Text</button>
</div> </div>
@code { @code {
string buttonText = "Pull finance data"; string button1Text = "Train AI";
string button2Text = "Predict AI";
async Task pullData(){ async Task pullandtrain(){
buttonText = "Do not refresh the page. The data is refreshing."; button1Text = "Do not refresh the page. The data is refreshing.";
await Task.Delay(1); await Task.Delay(1);
aiModule.PullData(); aiModule.TrainAI();
buttonText = "Refresh Completed"; 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 #endif
if (args.Contains("Pull-Stock-Data")) { if (args.Contains("Pull-Stock-Data")) {
interopModule.PullData(); interopModule.TrainAI();
} else { } else {
// Create the webapp // Create the webapp
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);