ryanDing26
commited on
Commit
·
b098c0f
1
Parent(s):
b24af95
new reqs
Browse files- requirements.txt +130 -52
requirements.txt
CHANGED
|
@@ -1,52 +1,130 @@
|
|
| 1 |
-
# Core dependencies
|
| 2 |
-
requests
|
| 3 |
-
pandas
|
| 4 |
-
numpy
|
| 5 |
-
pydantic
|
| 6 |
-
|
| 7 |
-
# Gradio - CRITICAL FIX: was 4.4.1 (typo), should be 4.44.1
|
| 8 |
-
gradio
|
| 9 |
-
|
| 10 |
-
# LangChain ecosystem
|
| 11 |
-
langchain-core
|
| 12 |
-
langchain-openai
|
| 13 |
-
langchain-anthropic
|
| 14 |
-
langgraph
|
| 15 |
-
|
| 16 |
-
# LLM API SDKs
|
| 17 |
-
openai
|
| 18 |
-
anthropic
|
| 19 |
-
python-dotenv
|
| 20 |
-
|
| 21 |
-
# Pin problematic dependencies BEFORE lazyslide to avoid backtracking
|
| 22 |
-
# xarray==2024.10.0
|
| 23 |
-
# shapely==2.0.6
|
| 24 |
-
# scipy==1.11.4
|
| 25 |
-
# numba==0.60.0
|
| 26 |
-
# dask==2024.11.2
|
| 27 |
-
scipy
|
| 28 |
-
shapely
|
| 29 |
-
|
| 30 |
-
# ML/Vision dependencies
|
| 31 |
-
torch
|
| 32 |
-
torchvision
|
| 33 |
-
timm
|
| 34 |
-
transformers
|
| 35 |
-
huggingface-hub
|
| 36 |
-
Pillow
|
| 37 |
-
|
| 38 |
-
# LazySlide - now should install quickly with pinned deps above
|
| 39 |
-
lazyslide
|
| 40 |
-
|
| 41 |
-
# PRISM dependencies
|
| 42 |
-
python-environ
|
| 43 |
-
protobuf
|
| 44 |
-
sacremoses
|
| 45 |
-
|
| 46 |
-
# Whole slide image support
|
| 47 |
-
openslide-python
|
| 48 |
-
|
| 49 |
-
# Additional tools (optional - comment out if build still times out)
|
| 50 |
-
scikit-image
|
| 51 |
-
opencv-python-headless
|
| 52 |
-
matplotlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# # Core dependencies
|
| 2 |
+
# requests
|
| 3 |
+
# pandas
|
| 4 |
+
# numpy
|
| 5 |
+
# pydantic
|
| 6 |
+
|
| 7 |
+
# # Gradio - CRITICAL FIX: was 4.4.1 (typo), should be 4.44.1
|
| 8 |
+
# gradio
|
| 9 |
+
|
| 10 |
+
# # LangChain ecosystem
|
| 11 |
+
# langchain-core
|
| 12 |
+
# langchain-openai
|
| 13 |
+
# langchain-anthropic
|
| 14 |
+
# langgraph
|
| 15 |
+
|
| 16 |
+
# # LLM API SDKs
|
| 17 |
+
# openai
|
| 18 |
+
# anthropic
|
| 19 |
+
# python-dotenv
|
| 20 |
+
|
| 21 |
+
# # Pin problematic dependencies BEFORE lazyslide to avoid backtracking
|
| 22 |
+
# # xarray==2024.10.0
|
| 23 |
+
# # shapely==2.0.6
|
| 24 |
+
# # scipy==1.11.4
|
| 25 |
+
# # numba==0.60.0
|
| 26 |
+
# # dask==2024.11.2
|
| 27 |
+
# scipy
|
| 28 |
+
# shapely
|
| 29 |
+
|
| 30 |
+
# # ML/Vision dependencies
|
| 31 |
+
# torch
|
| 32 |
+
# torchvision
|
| 33 |
+
# timm
|
| 34 |
+
# transformers
|
| 35 |
+
# huggingface-hub
|
| 36 |
+
# Pillow
|
| 37 |
+
|
| 38 |
+
# # LazySlide - now should install quickly with pinned deps above
|
| 39 |
+
# lazyslide
|
| 40 |
+
|
| 41 |
+
# # PRISM dependencies
|
| 42 |
+
# python-environ
|
| 43 |
+
# protobuf
|
| 44 |
+
# sacremoses
|
| 45 |
+
|
| 46 |
+
# # Whole slide image support
|
| 47 |
+
# # openslide-python
|
| 48 |
+
|
| 49 |
+
# # Additional tools (optional - comment out if build still times out)
|
| 50 |
+
# scikit-image
|
| 51 |
+
# opencv-python-headless
|
| 52 |
+
# matplotlib
|
| 53 |
+
# EXACT VERSION PINS - Builds in <5 minutes on HF Spaces
|
| 54 |
+
# These versions are known to work together
|
| 55 |
+
|
| 56 |
+
# ============================================
|
| 57 |
+
# CORE (Required)
|
| 58 |
+
# ============================================
|
| 59 |
+
gradio==5.7.0
|
| 60 |
+
python-dotenv==1.0.0
|
| 61 |
+
requests==2.32.3
|
| 62 |
+
|
| 63 |
+
# ============================================
|
| 64 |
+
# DATA (Minimal)
|
| 65 |
+
# ============================================
|
| 66 |
+
numpy==1.26.4
|
| 67 |
+
pandas==2.2.2
|
| 68 |
+
Pillow==11.0.0
|
| 69 |
+
|
| 70 |
+
# ============================================
|
| 71 |
+
# LLM APIs
|
| 72 |
+
# ============================================
|
| 73 |
+
anthropic==0.71.0
|
| 74 |
+
pydantic==2.9.2
|
| 75 |
+
|
| 76 |
+
# ============================================
|
| 77 |
+
# LANGCHAIN (Core only)
|
| 78 |
+
# ============================================
|
| 79 |
+
langchain-core==0.3.28
|
| 80 |
+
langchain-anthropic==0.3.6
|
| 81 |
+
|
| 82 |
+
# ============================================
|
| 83 |
+
# LAZYSLIDE DEPENDENCY STACK - ALL PRE-PINNED
|
| 84 |
+
# This section ensures pip doesn't backtrack
|
| 85 |
+
# ============================================
|
| 86 |
+
|
| 87 |
+
# First layer - base numerical libs
|
| 88 |
+
llvmlite==0.43.0
|
| 89 |
+
numba==0.60.0
|
| 90 |
+
scipy==1.13.1
|
| 91 |
+
|
| 92 |
+
# Second layer - spatial/geo
|
| 93 |
+
shapely==2.0.6
|
| 94 |
+
pyproj==3.6.1
|
| 95 |
+
|
| 96 |
+
# Third layer - data processing
|
| 97 |
+
toolz==0.12.1
|
| 98 |
+
cloudpickle==3.0.0
|
| 99 |
+
partd==1.4.1
|
| 100 |
+
dask==2024.5.0
|
| 101 |
+
fsspec==2024.3.1
|
| 102 |
+
|
| 103 |
+
# Fourth layer - array/dataframe
|
| 104 |
+
xarray==2024.3.0
|
| 105 |
+
|
| 106 |
+
# Fifth layer - geospatial
|
| 107 |
+
geopandas==0.14.4
|
| 108 |
+
|
| 109 |
+
# Sixth layer - imaging
|
| 110 |
+
tifffile==2024.8.30
|
| 111 |
+
zarr==2.18.3
|
| 112 |
+
|
| 113 |
+
# Finally - lazyslide (should install quickly now)
|
| 114 |
+
lazyslide==0.9.2
|
| 115 |
+
|
| 116 |
+
# ============================================
|
| 117 |
+
# OPTIONAL - Comment out if not needed
|
| 118 |
+
# ============================================
|
| 119 |
+
# transformers==4.46.0
|
| 120 |
+
# huggingface-hub==0.26.3
|
| 121 |
+
|
| 122 |
+
# ============================================
|
| 123 |
+
# DO NOT ADD - These cause resolution issues:
|
| 124 |
+
# ============================================
|
| 125 |
+
# torch # Too heavy for free tier, causes OOM
|
| 126 |
+
# torchvision
|
| 127 |
+
# timm
|
| 128 |
+
# opencv-python-headless
|
| 129 |
+
# scikit-image
|
| 130 |
+
# matplotlib
|