Thomas G. Lopes
commited on
Commit
·
651ed79
1
Parent(s):
76beec4
add provider metrics link
Browse files
src/lib/components/inference-playground/playground.svelte
CHANGED
@@ -14,6 +14,7 @@
|
|
14 |
import IconInfo from "~icons/carbon/information";
|
15 |
import IconSettings from "~icons/carbon/settings";
|
16 |
import IconShare from "~icons/carbon/share";
|
|
|
17 |
import { default as IconDelete } from "~icons/carbon/trash-can";
|
18 |
import { showQuotaModal } from "../quota-modal.svelte";
|
19 |
import { showShareModal } from "../share-modal.svelte";
|
@@ -400,7 +401,7 @@
|
|
400 |
|
401 |
<GenerationConfig bind:conversation={session.project.conversations[0]!} />
|
402 |
|
403 |
-
<div class="mt-auto flex items-center justify-end gap-4">
|
404 |
<button
|
405 |
onclick={() => showShareModal(session.project)}
|
406 |
class="flex items-center gap-1 text-sm text-gray-500 underline decoration-gray-300 hover:text-gray-800 dark:text-gray-400 dark:decoration-gray-600 dark:hover:text-gray-200"
|
@@ -408,6 +409,14 @@
|
|
408 |
<IconShare class="text-xs" />
|
409 |
Share
|
410 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
{#if token.value}
|
412 |
<button
|
413 |
onclick={token.reset}
|
|
|
14 |
import IconInfo from "~icons/carbon/information";
|
15 |
import IconSettings from "~icons/carbon/settings";
|
16 |
import IconShare from "~icons/carbon/share";
|
17 |
+
import IconWaterfall from "~icons/carbon/chart-waterfall";
|
18 |
import { default as IconDelete } from "~icons/carbon/trash-can";
|
19 |
import { showQuotaModal } from "../quota-modal.svelte";
|
20 |
import { showShareModal } from "../share-modal.svelte";
|
|
|
401 |
|
402 |
<GenerationConfig bind:conversation={session.project.conversations[0]!} />
|
403 |
|
404 |
+
<div class="mt-auto flex items-center justify-end gap-4 whitespace-nowrap">
|
405 |
<button
|
406 |
onclick={() => showShareModal(session.project)}
|
407 |
class="flex items-center gap-1 text-sm text-gray-500 underline decoration-gray-300 hover:text-gray-800 dark:text-gray-400 dark:decoration-gray-600 dark:hover:text-gray-200"
|
|
|
409 |
<IconShare class="text-xs" />
|
410 |
Share
|
411 |
</button>
|
412 |
+
<a
|
413 |
+
class="flex items-center gap-1 text-sm text-gray-500 underline decoration-gray-300 hover:text-gray-800 dark:text-gray-400 dark:decoration-gray-600 dark:hover:text-gray-200"
|
414 |
+
href="https://huggingface.co/spaces/victor/providers-metrics"
|
415 |
+
target="_blank"
|
416 |
+
>
|
417 |
+
<IconWaterfall class="text-xs" />
|
418 |
+
Metrics
|
419 |
+
</a>
|
420 |
{#if token.value}
|
421 |
<button
|
422 |
onclick={token.reset}
|