File size: 958 Bytes
fd2f716 44fc64a 326c2f1 9dcfb8f 44fc64a 9dcfb8f 44fc64a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
from synthetic_dataset_generator._tabbedinterface import TabbedInterface
from synthetic_dataset_generator.apps.eval import app as eval_app
from synthetic_dataset_generator.apps.faq import app as faq_app
from synthetic_dataset_generator.apps.sft import app as sft_app
from synthetic_dataset_generator.apps.textcat import app as textcat_app
theme = "argilla/argilla-theme"
css = """
.main_ui_logged_out{opacity: 0.3; pointer-events: none}
"""
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: 50%;"/>"""
demo = TabbedInterface(
[textcat_app, sft_app, eval_app, faq_app],
["Text Classification", "Supervised Fine-Tuning", "Evaluation", "FAQ"],
css=css,
title=image,
head="Synthetic Data Generator",
theme=theme,
)
if __name__ == "__main__":
demo.launch()
|