Spaces:
Sleeping
Sleeping
|
Download README.md from RIsknox/LLM_Monitor: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/RIsknox/LLM_Monitor/resolve/main/README.md
- Command line
-
hf download hf://spaces/RIsknox/LLM_Monitor/README.md
-
curl -L -o README.md https://huggingface.co/spaces/RIsknox/LLM_Monitor/resolve/main/README.md
1.09 kB
metadata
title: LLM Monitor
emoji: 🛡️
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
LLM Monitor (GenAI Shield V2)
A web application powered by Llama-Prompt-Guard-2-86M for pre-inference prompt screening, and post-inference response monitoring.
Local Development
Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate pip install -r requirements.txtDownload the Prompt Guard model weights:
python download_model.pyRun the application:
export GEMINI_API_KEY="your-gemini-key" python genai_app.py
Deploying to Hugging Face Spaces
- Create a new Space on Hugging Face.
- Choose Docker as the SDK.
- Choose the Blank template.
- Go to Settings > Variables and Secrets and add your secrets:
GEMINI_API_KEY: Your Google Gemini API key.
- Push this repository to your Hugging Face Space repository. Hugging Face will automatically build and run the Docker image.