-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI implementation of experiments form
- Loading branch information
=
committed
Nov 19, 2024
1 parent
97240e3
commit 3c6d80f
Showing
5 changed files
with
131 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
lumigator/frontend/src/components/molecules/LModelCards.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
|
||
<template> | ||
<div class="l-models-list"> | ||
<div class="l-models-list__options-container"> | ||
<div | ||
v-for="model in modelOptions" | ||
:key="model.name" | ||
class="l-models-list__options-container--option" | ||
> | ||
<RadioButton | ||
v-model="selectedModel" | ||
:inputId="model.link" | ||
name="dynamic" | ||
:value="model" | ||
/> | ||
<label :for="model.link">{{ model.link }}</label> | ||
<Button | ||
icon="pi pi-external-link" | ||
severity="secondary" | ||
variant="text" | ||
rounded | ||
class="l-models__external-link" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue'; | ||
import Button from 'primevue/button'; | ||
import RadioButton from 'primevue/radiobutton'; | ||
const selectedModel = ref('') | ||
defineProps({ | ||
modelLink: String | ||
}) | ||
const modelOptions = ref([ | ||
{ name: 'Accounting', link: 'hf://facebook/bart-large-cnn' }, | ||
{ name: 'Marketing', link: 'mikeadimech/longformer-qmsum-meeting-summarization' }, | ||
{ name: 'Production', link: 'mrm8488/t5-base-finetuned-summarize-news' }, | ||
{ name: 'Research', link: 'mrm8488/t5-base-finetuned-summarize-news' } | ||
]); | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.l-models-list { | ||
width: 100%; | ||
&__options-container { | ||
display: flex; | ||
flex-direction: column; | ||
padding-top: $l-spacing-1; | ||
gap: $l-spacing-1; | ||
&--option { | ||
display: grid; | ||
grid-template-columns: 30px 80% 1fr; | ||
grid-gap: 5px; | ||
background-color: $l-grey-300; | ||
padding: $l-spacing-1; | ||
border-radius: $l-main-radius; | ||
label { | ||
font-size: $l-font-size-sm; | ||
color: $l-grey-150; | ||
} | ||
} | ||
&__external-link, button { | ||
background-color: $l-grey-300!important; | ||
border: none; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters