Spaces:
Sleeping
Sleeping
| # Core Web Framework (Lightweight) | |
| # flask==2.3.3 | |
| # flask-cors==3.0.10 | |
| # (Uncomment above if using Flask server, not needed for Hugging Face Space) | |
| # Database (Essential only) | |
| pymongo==4.6.1 | |
| bson==0.5.10 | |
| # AWS (Minimal) | |
| boto3==1.34.81 | |
| botocore==1.34.81 | |
| # OpenAI and LangChain (Core only) | |
| openai~=1.12 | |
| langchain~=0.3 | |
| langchain-community~=0.3 | |
| langchain-core~=0.3 | |
| langchain-openai~=0.3 | |
| langchain-text-splitters~=0.3.0 | |
| # PDF Generation (Lightweight) | |
| reportlab==4.0.0 | |
| # HTTP Client (Essential) | |
| httpx~=0.27 | |
| # Environment and Utils (Minimal) | |
| python-dotenv==1.0.0 | |
| pytz==2024.1 | |
| # PDF processing (One library is enough) | |
| pypdf==3.17.1 | |
| # Vector store (Lightweight) | |
| faiss-cpu==1.7.4 | |
| # Utilities (Essential only) | |
| pydantic | |
| tiktoken~=0.7.0 | |
| # Core ML (Minimal) | |
| numpy | |
| scikit-learn==1.3.0 | |
| psutil==6.0.0 | |
| # Hugging Face Spaces compatibility | |
| gradio==5.29.1 | |
| huggingface_hub | |
| # Remove heavy packages: | |
| # - Removed pandas (use numpy instead) | |
| # - Removed sentence-transformers (use simpler text processing) | |
| # - Removed torch (use CPU-only alternatives) | |
| # - Removed transformers (use simpler text processing) | |
| # - Removed fastapi (using flask only) | |
| # - Removed unnecessary dependencies | |