SuoMoto.AI / README.md
cryogenic22's picture
Update README.md
c362a3c verified
metadata
license: mit
title: 'Suomoto.AI '
sdk: docker
emoji: 🏢
colorFrom: blue
colorTo: indigo
pinned: false
short_description: AI based Legal Assistant with Agentic workflow

#README.md

Legal AI Assistant

Configuration

This Space requires the following secrets to be configured:

  1. ANTHROPIC_API_KEY: Your Anthropic API key
  2. HF_TOKEN: Your Hugging Face access token

To configure:

  1. Go to Space Settings
  2. Under "Repository Secrets"
  3. Add both secrets with your API keys

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Legal AI Assistant for Hugging Face Spaces

A Docker-based legal research assistant powered by AI, designed for deployment on Hugging Face Spaces.

Setup Instructions

  1. Create a new Space on Hugging Face:

    • Select "Docker" as the template
    • Add required secrets:
      • ANTHROPIC_API_KEY
      • HF_TOKEN
  2. Clone and push code:

git clone https://huggingface.co/spaces/username/space-name
# Copy all files into the cloned directory
git add .
git commit -m "Initial commit"
git push
  1. The Space will automatically build and deploy the Docker container.

Features

  • Document processing with OCR
  • Vector database for document storage
  • Legal research assistance
  • Document drafting
  • Case analysis

Local Development

  1. Build Docker image:
docker build -t legal-ai-app .
  1. Run container:
docker run -p 7860:7860 \
  -e ANTHROPIC_API_KEY=your_key \
  -e HF_TOKEN=your_token \
  legal-ai-app

Notes

  • The app uses port 7860 as required by Hugging Face Spaces
  • Persistent storage is maintained in /code/data
  • System dependencies are installed for OCR and PDF processing