mishig HF staff commited on
Commit
92b1a8e
1 Parent(s): 226d43f

[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: [GenerationStatistics] | [GenerationStatistics, GenerationStatistics] = [
78
- { latency: 0, generatedTokensCount: 0 },
79
- ]; // todo: support two models from the starts from the url daw
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