File size: 537 Bytes
922c3ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Spacefile for Legal Dashboard OCR
# This file configures the Hugging Face Space deployment

# Python runtime
runtime: python3.10

# Build commands
build:

  - pip install -r requirements.txt

# Run command
run: python app.py

# Environment variables
env:

  - HF_TOKEN: $HF_TOKEN
  - PYTHONPATH: /workspace

# Hardware requirements
hardware: cpu

# Python packages
packages:

  - transformers
  - torch
  - fastapi
  - uvicorn
  - gradio
  - PyMuPDF
  - Pillow
  - opencv-python
  - numpy
  - scikit-learn