mishig HF staff commited on
Commit
5e8ac10
·
1 Parent(s): 8539a6e

type snippetsByLanguage: Record<Language, Snippet[]>;

Browse files
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte CHANGED
@@ -44,6 +44,7 @@
44
 
45
  $: tokenStr = getTokenStr(showToken);
46
 
 
47
  $: snippetsByLanguage = {
48
  javascript: getJavascriptSnippets(conversation, tokenStr),
49
  python: getPythonSnippets(conversation, tokenStr),
 
44
 
45
  $: tokenStr = getTokenStr(showToken);
46
 
47
+ let snippetsByLanguage: Record<Language, Snippet[]>;
48
  $: snippetsByLanguage = {
49
  javascript: getJavascriptSnippets(conversation, tokenStr),
50
  python: getPythonSnippets(conversation, tokenStr),