mishig HF staff commited on
Commit
09931c7
1 Parent(s): e63e7c7
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -388,4 +388,4 @@
388
  {/if}
389
  </div>
390
 
391
- <ModelPickerModal {models}/>
 
388
  {/if}
389
  </div>
390
 
391
+ <ModelPickerModal {models} />
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte CHANGED
@@ -253,7 +253,7 @@ print(output.choices[0].message)`
253
  <div class="flex items-center justify-between px-4 pb-4 pt-6">
254
  <h2 class="font-semibold">{label}</h2>
255
  <button
256
- class="flex items-center gap-x-1.5 rounded-md bg-gray-200 px-1.5 py-0.5 transition dark:bg-gray-950 text-sm"
257
  on:click={(e) => {
258
  const el = e.currentTarget;
259
  el.classList.add('text-green-500');
 
253
  <div class="flex items-center justify-between px-4 pb-4 pt-6">
254
  <h2 class="font-semibold">{label}</h2>
255
  <button
256
+ class="flex items-center gap-x-1.5 rounded-md bg-gray-200 px-1.5 py-0.5 text-sm transition dark:bg-gray-950"
257
  on:click={(e) => {
258
  const el = e.currentTarget;
259
  el.classList.add('text-green-500');
src/lib/components/InferencePlayground/InferencePlaygroundModelPickerModal.svelte CHANGED
@@ -1,5 +1,5 @@
1
  <script lang="ts">
2
- import type { ModelEntryWithTokenizer } from "$lib/types";
3
 
4
  export let models: ModelEntryWithTokenizer[];
5
  </script>
@@ -85,10 +85,11 @@
85
  <div class="px-2 py-1.5 text-xs font-medium text-gray-500">Other Models</div>
86
  <div>
87
  {#each models as model}
88
- {@const [nameSpace, modelName] = model.id.split("/")}
89
  <div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
90
  <span class="inline-flex items-center"
91
- ><span class="text-gray-500">{nameSpace}</span><span class="mx-1 text-black">/</span
 
92
  ><span class="text-black">{modelName}</span></span
93
  >
94
  </div>
 
1
  <script lang="ts">
2
+ import type { ModelEntryWithTokenizer } from '$lib/types';
3
 
4
  export let models: ModelEntryWithTokenizer[];
5
  </script>
 
85
  <div class="px-2 py-1.5 text-xs font-medium text-gray-500">Other Models</div>
86
  <div>
87
  {#each models as model}
88
+ {@const [nameSpace, modelName] = model.id.split('/')}
89
  <div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
90
  <span class="inline-flex items-center"
91
+ ><span class="text-gray-500">{nameSpace}</span><span class="mx-1 text-black"
92
+ >/</span
93
  ><span class="text-black">{modelName}</span></span
94
  >
95
  </div>