Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIT: Update layout for LIT vertexai demo. #1567

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lit_nlp/examples/vertexai/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
from lit_nlp import app as lit_app
from lit_nlp import dev_server
from lit_nlp import server_flags
from lit_nlp.components import word_replacer
from lit_nlp.examples.prompt_debugging import datasets as prompt_debugging_datasets
from lit_nlp.examples.vertexai import models as vertexai_models

Expand Down Expand Up @@ -186,10 +187,12 @@ def main(argv: Sequence[str]) -> Optional[dev_server.LitServerType]:
)
dataset_loaders = prompt_debugging_datasets.get_dataset_loaders()

# TODO(faneycourage): Design and add a layout for generative demos.
generators = {'word_replacer': word_replacer.WordReplacer()}

lit_demo = dev_server.Server(
models=models,
model_loaders=model_loaders,
generators=generators,
datasets=datasets,
dataset_loaders=dataset_loaders,
**server_flags.get_flags()
Expand Down
Loading