Commit
·
1b3d86d
1
Parent(s):
43c900f
update readme to about
Browse files
src/synthetic_dataset_generator/app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from synthetic_dataset_generator._tabbedinterface import TabbedInterface
|
2 |
|
3 |
# from synthetic_dataset_generator.apps.eval import app as eval_app
|
4 |
-
from synthetic_dataset_generator.apps.
|
5 |
from synthetic_dataset_generator.apps.sft import app as sft_app
|
6 |
from synthetic_dataset_generator.apps.textcat import app as textcat_app
|
7 |
|
@@ -21,8 +21,8 @@ button[role="tab"][aria-selected="true"]:hover {border-color: var(--button-prima
|
|
21 |
image = """<br><img src="https://raw.githubusercontent.com/argilla-io/synthetic-data-generator/main/assets/logo.svg" alt="Synthetic Data Generator Logo" style="display: block; margin-left: auto; margin-right: auto; width: clamp(50%, 400px, 100%)"/>"""
|
22 |
|
23 |
demo = TabbedInterface(
|
24 |
-
[textcat_app, sft_app,
|
25 |
-
["Text Classification", "Supervised Fine-Tuning", "
|
26 |
css=css,
|
27 |
title=image,
|
28 |
theme=theme,
|
|
|
1 |
from synthetic_dataset_generator._tabbedinterface import TabbedInterface
|
2 |
|
3 |
# from synthetic_dataset_generator.apps.eval import app as eval_app
|
4 |
+
from synthetic_dataset_generator.apps.about import app as about_app
|
5 |
from synthetic_dataset_generator.apps.sft import app as sft_app
|
6 |
from synthetic_dataset_generator.apps.textcat import app as textcat_app
|
7 |
|
|
|
21 |
image = """<br><img src="https://raw.githubusercontent.com/argilla-io/synthetic-data-generator/main/assets/logo.svg" alt="Synthetic Data Generator Logo" style="display: block; margin-left: auto; margin-right: auto; width: clamp(50%, 400px, 100%)"/>"""
|
22 |
|
23 |
demo = TabbedInterface(
|
24 |
+
[textcat_app, sft_app, about_app],
|
25 |
+
["Text Classification", "Supervised Fine-Tuning", "About"],
|
26 |
css=css,
|
27 |
title=image,
|
28 |
theme=theme,
|
src/synthetic_dataset_generator/apps/about.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
with gr.Blocks() as app:
|
4 |
+
gr.Markdown(
|
5 |
+
"""
|
6 |
+
Synthetic data is artificially generated information that mimics real-world data. It allows overcoming data limitations by expanding or enhancing datasets.
|
7 |
+
|
8 |
+
Introducing the Synthetic Data Generator, a user-friendly application that takes a no-code approach to creating custom datasets with Large Language Models (LLMs). The best part: A simple step-by-step process, making dataset creation a non-technical breeze, allowing anyone to create datasets and models in minutes and without any code.
|
9 |
+
|
10 |
+
The synthetic data generator takes your custom prompt and returns a dataset for your use case, using a synthetic data pipeline. In the background this is powered by distilabel and the free Hugging Face text-generation API but we don’t need to worry about these complexities and we can focus on using the UI.
|
11 |
+
|
12 |
+
|
13 |
+
- Read more in [our announcement blog post](https://huggingface.co/blog/synthetic-data-generator)
|
14 |
+
- Find the library on [GitHub](https://github.com/argilla-io/synthetic-data-generator)
|
15 |
+
"""
|
16 |
+
)
|
src/synthetic_dataset_generator/apps/readme.py
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import requests
|
3 |
-
|
4 |
-
with gr.Blocks() as app:
|
5 |
-
with gr.Row():
|
6 |
-
url = "https://raw.githubusercontent.com/argilla-io/synthetic-data-generator/refs/heads/main/README.md"
|
7 |
-
response = requests.get(url)
|
8 |
-
readme_content: str = response.text
|
9 |
-
readme_content = readme_content.split("## Introduction")[1]
|
10 |
-
readme_content = "## Introduction" + readme_content
|
11 |
-
gr.Markdown(readme_content)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|