From 8791c83991a924f74d04f59e20b6e689e5160368 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Tue, 17 Feb 2026 18:39:02 -0800 Subject: [PATCH] Wire all of it into C# --- WebServer/Controllers/PythonInterop.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WebServer/Controllers/PythonInterop.cs b/WebServer/Controllers/PythonInterop.cs index ea723ab5..10b82c0b 100644 --- a/WebServer/Controllers/PythonInterop.cs +++ b/WebServer/Controllers/PythonInterop.cs @@ -22,17 +22,17 @@ namespace PythonInterop { } // This is thread blocking, runs on the main thread, and takes multiple minutes so probabaly need to run on a background thread at some point - public void PullData() { + public void TrainAI() { using (Py.GIL()) { - dynamic datapuller = Py.Import("datapuller"); - dynamic result = datapuller.pull(); + dynamic datapuller = Py.Import("ai-trainer"); + dynamic result = datapuller.TrainAI(); } } - public void TestAI() { + public void PredictAI() { using (Py.GIL()) { - dynamic main = Py.Import("main"); - dynamic result = main.main(); + dynamic main = Py.Import("ai-predictor"); + dynamic result = main.Predict(); } }