Update internal bindings to new names
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user