Skip to content

Image and Video generation #1581

Answered by nsarrazin
choonspin asked this question in Q&A
Discussion options

You must be logged in to vote

hi! The way we do this in HuggingChat is by having tools and a tool calling compatible model. The tools are hosted on Hugging Face Spaces, for example the image generation one is black-forest-labs/FLUX.1-schnell

You can check out our prod config here: prod.yaml

Of interest to you are the MODELS and TOOLS env variable

  MODELS: >
    [
      //...
      {
        "name": "meta-llama/Meta-Llama-3.1-70B-Instruct",
        "id": "meta-llama/Meta-Llama-3.1-70B-Instruct",
        "tokenizer": "nsarrazin/llama3.1-tokenizer",
        // ...
        "tools": true,
     // ...
     }
    ]
  TOOLS: >
    [
      {
        "_id": "000000000000000000000001",
        "displayName": "Image Generation"…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@choonspin
Comment options

Answer selected by choonspin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants