Views
No views yet
from huggingface_hub import snapshot_download
snapshot_download("llmware/slim-sentiment-tool", local_dir="/path/on/your/machine/", local_dir_use_symlinks=False) from llmware.models import ModelCatalog
# to load the model and make a basic inference
model = ModelCatalog().load_model("slim-sentiment-tool")
response = model.function_call(text_sample)
# this one line will download the model and run a series of tests
ModelCatalog().tool_test_run("slim-sentiment-tool", verbose=True) from llmware.agents import LLMfx
llm_fx = LLMfx()
llm_fx.load_tool("sentiment")
response = llm_fx.sentiment(text)