[Fix] generation token count stats
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -74,9 +74,9 @@
|
|
74 |
latency: number;
|
75 |
generatedTokensCount: number;
|
76 |
}
|
77 |
-
let generationStats
|
78 |
-
|
79 |
-
|
80 |
|
81 |
const hfTokenLocalStorageKey = "hf_token";
|
82 |
|
|
|
74 |
latency: number;
|
75 |
generatedTokensCount: number;
|
76 |
}
|
77 |
+
let generationStats = session.conversations.map(_ => ({ latency: 0, generatedTokensCount: 0 })) as
|
78 |
+
| [GenerationStatistics]
|
79 |
+
| [GenerationStatistics, GenerationStatistics];
|
80 |
|
81 |
const hfTokenLocalStorageKey = "hf_token";
|
82 |
|