Make work for both debug and live
This commit is contained in:
@@ -16,8 +16,12 @@ if (!app.Environment.IsDevelopment()) {
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
// Load the module in globally
|
||||
AIModule interopModule = new AIModule();
|
||||
// Load the module in globally and use correct path for local or docker runners
|
||||
#if DEBUG
|
||||
AIModule interopModule = new AIModule(PythonPathBase: "/usr/", PythonVersion: "python3.11");
|
||||
#else
|
||||
AIModule interopModule = new AIModule();
|
||||
#endif
|
||||
|
||||
// Run this for testing purposes
|
||||
interopModule.TestAI();
|
||||
|
||||
Reference in New Issue
Block a user