-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from argilla-io/feat/choose-models
add support for custom BASE_URL, MODEL, API_KEY
- Loading branch information
Showing
20 changed files
with
428 additions
and
712 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,4 @@ | ||
from src.distilabel_dataset_generator._tabbedinterface import TabbedInterface | ||
from src.distilabel_dataset_generator.apps.eval import app as eval_app | ||
from src.distilabel_dataset_generator.apps.faq import app as faq_app | ||
from src.distilabel_dataset_generator.apps.sft import app as sft_app | ||
from src.distilabel_dataset_generator.apps.textcat import app as textcat_app | ||
|
||
theme = "argilla/argilla-theme" | ||
|
||
css = """ | ||
button[role="tab"][aria-selected="true"] { border: 0; background: var(--neutral-800); color: white; border-top-right-radius: var(--radius-md); border-top-left-radius: var(--radius-md)} | ||
button[role="tab"][aria-selected="true"]:hover {border-color: var(--button-primary-background-fill)} | ||
button.hf-login {background: var(--neutral-800); color: white} | ||
button.hf-login:hover {background: var(--neutral-700); color: white} | ||
.tabitem { border: 0; padding-inline: 0} | ||
.main_ui_logged_out{opacity: 0.3; pointer-events: none} | ||
.group_padding{padding: .55em} | ||
.gallery-item {background: var(--background-fill-secondary); text-align: left} | ||
.gallery {white-space: wrap} | ||
#space_model .wrap > label:last-child{opacity: 0.3; pointer-events:none} | ||
#system_prompt_examples { | ||
color: var(--body-text-color) !important; | ||
background-color: var(--block-background-fill) !important; | ||
} | ||
.container {padding-inline: 0 !important} | ||
""" | ||
|
||
demo = TabbedInterface( | ||
[textcat_app, sft_app, eval_app, faq_app], | ||
["Text Classification", "Supervised Fine-Tuning", "Evaluation", "FAQ"], | ||
css=css, | ||
title="Synthetic Data Generator", | ||
head="Synthetic Data Generator", | ||
theme=theme, | ||
) | ||
|
||
from distilabel_dataset_generator.app import demo | ||
|
||
if __name__ == "__main__": | ||
demo.launch() |
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 |
---|---|---|
|
@@ -5,6 +5,18 @@ description = "Build datasets using natural language" | |
authors = [ | ||
{name = "davidberenstein1957", email = "[email protected]"}, | ||
] | ||
tags = [ | ||
"gradio", | ||
"synthetic-data", | ||
"huggingface", | ||
"argilla", | ||
"generative-ai", | ||
"ai", | ||
] | ||
requires-python = "<3.13,>=3.10" | ||
readme = "README.md" | ||
license = {text = "Apache 2"} | ||
|
||
dependencies = [ | ||
"distilabel[hf-inference-endpoints,argilla,outlines,instructor]>=1.4.1", | ||
"gradio[oauth]<5.0.0", | ||
|
@@ -14,14 +26,10 @@ dependencies = [ | |
"gradio-huggingfacehub-search>=0.0.7", | ||
"argilla>=2.4.0", | ||
] | ||
requires-python = "<3.13,>=3.10" | ||
readme = "README.md" | ||
license = {text = "apache 2"} | ||
|
||
[build-system] | ||
requires = ["pdm-backend"] | ||
build-backend = "pdm.backend" | ||
|
||
|
||
[tool.pdm] | ||
distribution = true |
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
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,38 @@ | ||
from distilabel_dataset_generator._tabbedinterface import TabbedInterface | ||
from distilabel_dataset_generator.apps.eval import app as eval_app | ||
from distilabel_dataset_generator.apps.faq import app as faq_app | ||
from distilabel_dataset_generator.apps.sft import app as sft_app | ||
from distilabel_dataset_generator.apps.textcat import app as textcat_app | ||
|
||
theme = "argilla/argilla-theme" | ||
|
||
css = """ | ||
button[role="tab"][aria-selected="true"] { border: 0; background: var(--neutral-800); color: white; border-top-right-radius: var(--radius-md); border-top-left-radius: var(--radius-md)} | ||
button[role="tab"][aria-selected="true"]:hover {border-color: var(--button-primary-background-fill)} | ||
button.hf-login {background: var(--neutral-800); color: white} | ||
button.hf-login:hover {background: var(--neutral-700); color: white} | ||
.tabitem { border: 0; padding-inline: 0} | ||
.main_ui_logged_out{opacity: 0.3; pointer-events: none} | ||
.group_padding{padding: .55em} | ||
.gallery-item {background: var(--background-fill-secondary); text-align: left} | ||
.gallery {white-space: wrap} | ||
#space_model .wrap > label:last-child{opacity: 0.3; pointer-events:none} | ||
#system_prompt_examples { | ||
color: var(--body-text-color) !important; | ||
background-color: var(--block-background-fill) !important; | ||
} | ||
.container {padding-inline: 0 !important} | ||
""" | ||
|
||
demo = TabbedInterface( | ||
[textcat_app, sft_app, eval_app, faq_app], | ||
["Text Classification", "Supervised Fine-Tuning", "Evaluation", "FAQ"], | ||
css=css, | ||
title="Synthetic Data Generator", | ||
head="Synthetic Data Generator", | ||
theme=theme, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
demo.launch() |
Empty file.
Oops, something went wrong.