LLaVA-Interactive-Demo icon indicating copy to clipboard operation
LLaVA-Interactive-Demo copied to clipboard

| ERROR | stderr | KeyError: 'CONTENT_SAFETY_ENDPOINT'

Open dengweihuan opened this issue 1 year ago • 1 comments

how to solve the problem of "| ERROR | stderr | KeyError: 'CONTENT_SAFETY_ENDPOINT'" and "KeyError: '"CONTENT_SAFETY_KEY"'". Please tell me what should I set these two variables to.

dengweihuan avatar Feb 27 '24 08:02 dengweihuan

CONTENT_SAFETY_ENDPOINT and CONTENT_SAFETY_KEY are environment variables you set if you are using any of the Azure AI Content Safety moderation flags (Suffixed with *_aics)

I removed these moderation flags from main branch in this PR in hopes that these variables are only needed if you choose AICS moderation https://github.com/LLaVA-VL/LLaVA-Interactive-Demo/pull/14/files#diff-9561ba98374bfa0ae04e9489e6fcf01cb78e9216b1f31d6322250769bf2e96afL36-L46

To provision Azure AI Content Safety Resource and get the endpoint and key, see the documentation: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/overview

mattmazzola avatar Feb 29 '24 20:02 mattmazzola