|
# Main dependencies for Hugging Face Space deployment
|
|
gradio==3.44.4
|
|
requests==2.31.0
|
|
python-dotenv==1.0.0
|
|
|
|
# Langchain ecosystem with compatible versions
|
|
langchain==0.1.0
|
|
langchain-core==0.1.17
|
|
langchain-openai==0.0.5
|
|
openai==1.10.0
|
|
langgraph==0.0.24
|
|
|
|
# HTTP Libraries
|
|
httpx==0.24.1 # Compatible with supabase 1.2.0
|
|
|
|
# Database and storage
|
|
supabase==1.2.0
|
|
# postgrest will be installed as a dependency of supabase (>=0.10.8,<0.12.0)
|
|
|
|
# Search tools - version compatible with httpx
|
|
duckduckgo-search==3.8.3
|
|
|
|
# Parsing and content handling
|
|
beautifulsoup4==4.12.2
|
|
lxml==4.9.3 # For faster BS4 parsing
|
|
pillow==10.0.1
|
|
arxiv==1.4.8
|
|
youtube-transcript-api==0.6.1
|
|
|
|
# Math and reasoning tools
|
|
sympy==1.12.0
|
|
|
|
# Additional dependencies
|
|
pydantic==1.10.13 # Required by langchain
|
|
numpy==1.24.4
|
|
pandas==2.0.3
|
|
regex==2023.10.3
|
|
urllib3==2.0.7
|
|
certifi==2023.11.17
|
|
charset-normalizer==3.3.2 # Required by requests
|
|
|
|
# Note: This configuration ensures compatibility with Hugging Face Spaces:
|
|
# 1. Uses openai==1.10.0 which is compatible with langchain_openai
|
|
# 2. Resolves HTTP library conflicts by using httpx==0.24.1 (required by supabase)
|
|
# 3. Uses duckduckgo-search==3.8.3 which is compatible with httpx 0.24.x
|
|
# 4. Includes all necessary dependencies for web tools and API integrations
|
|
# 5. Added regex, urllib3, and certifi for web request handling
|
|
# 6. Added postgrest for supabase compatibility
|
|
# 7. Added sympy for mathematical reasoning tools
|
|
# 8. Added lxml to improve BeautifulSoup parsing performance |