Spaces:
Runtime error
Runtime error
Update requirements.txt
Browse files- requirements.txt +37 -11
requirements.txt
CHANGED
|
@@ -1,11 +1,37 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Circuit Component Detector — requirements
|
| 2 |
+
# Install with: pip install -r requirements.txt
|
| 3 |
+
|
| 4 |
+
# Core app / UI
|
| 5 |
+
gradio>=4.0.0
|
| 6 |
+
|
| 7 |
+
# Computer vision + detection
|
| 8 |
+
opencv-python>=4.8.0
|
| 9 |
+
ultralytics>=8.0.0 # YOLOv8 (model = YOLO("best.pt"))
|
| 10 |
+
numpy>=1.24.0
|
| 11 |
+
Pillow>=10.0.0
|
| 12 |
+
|
| 13 |
+
# OCR
|
| 14 |
+
easyocr>=1.7.0
|
| 15 |
+
|
| 16 |
+
# Graph building (wire-CC adjacency graph, path enumeration)
|
| 17 |
+
networkx>=3.0
|
| 18 |
+
|
| 19 |
+
# Data handling (CSV comparison feature)
|
| 20 |
+
pandas>=2.0.0
|
| 21 |
+
|
| 22 |
+
# LLM access — used for BOTH Nemotron calls:
|
| 23 |
+
# 1) get_all_values_with_llm() -> OCR/label/value reading
|
| 24 |
+
# 2) verify_paths_with_nemotron() -> NEW: second-opinion path/edge audit
|
| 25 |
+
# Both calls go through OpenRouter's OpenAI-compatible endpoint, so the
|
| 26 |
+
# official `openai` python package is the only client library required.
|
| 27 |
+
# No Anthropic/Claude package needed — this build is Nemotron-only.
|
| 28 |
+
openai>=1.0.0
|
| 29 |
+
|
| 30 |
+
# Notes:
|
| 31 |
+
# - torch/torchvision are required transitively by ultralytics + easyocr;
|
| 32 |
+
# pip will resolve them automatically. If you need GPU acceleration for
|
| 33 |
+
# YOLO, install the CUDA-enabled torch build for your platform BEFORE
|
| 34 |
+
# running `pip install -r requirements.txt` (see pytorch.org).
|
| 35 |
+
# - easyocr's `gpu=False` is hardcoded in app.py, so OCR will run on CPU
|
| 36 |
+
# regardless of torch's GPU availability. Change reader = easyocr.Reader(
|
| 37 |
+
# ['en'], gpu=True) in app.py if you want OCR on GPU too.
|