Spaces:
Running
Running
Update
Browse files
external/RobotHub-InferenceServer
CHANGED
@@ -1 +1 @@
|
|
1 |
-
Subproject commit
|
|
|
1 |
+
Subproject commit 6891c07aa81b76555206f14ac4882a4cfc5620d2
|
src/lib/elements/compute/RemoteComputeManager.svelte.ts
CHANGED
@@ -58,10 +58,14 @@ export interface AISessionStatus {
|
|
58 |
|
59 |
export class RemoteComputeManager {
|
60 |
private _computes = $state<RemoteCompute[]>([]);
|
61 |
-
|
|
|
|
|
|
|
|
|
62 |
|
63 |
constructor() {
|
64 |
-
|
65 |
}
|
66 |
|
67 |
// Reactive getters
|
|
|
58 |
|
59 |
export class RemoteComputeManager {
|
60 |
private _computes = $state<RemoteCompute[]>([]);
|
61 |
+
|
62 |
+
// Make the client reactive to URL changes
|
63 |
+
private get inferenceServerClient() {
|
64 |
+
return createClient(settings.inferenceServerUrl);
|
65 |
+
}
|
66 |
|
67 |
constructor() {
|
68 |
+
// Remove the fixed client initialization
|
69 |
}
|
70 |
|
71 |
// Reactive getters
|
src/lib/runes/settings.svelte.ts
CHANGED
@@ -7,6 +7,6 @@ interface Settings {
|
|
7 |
export const settings: Settings = $state({
|
8 |
// inferenceServerUrl: 'http://localhost:8001',
|
9 |
// transportServerUrl: 'http://localhost:8000'
|
10 |
-
inferenceServerUrl: 'https://blanchon-
|
11 |
-
transportServerUrl: 'https://blanchon-
|
12 |
});
|
|
|
7 |
export const settings: Settings = $state({
|
8 |
// inferenceServerUrl: 'http://localhost:8001',
|
9 |
// transportServerUrl: 'http://localhost:8000'
|
10 |
+
inferenceServerUrl: 'https://blanchon-robothub-inferenceserver.hf.space/api',
|
11 |
+
transportServerUrl: 'https://blanchon-robothub-transportserver.hf.space/api'
|
12 |
});
|