Spaces:
Sleeping
Sleeping
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| nodejs \ | |
| npm \ | |
| ffmpeg \ | |
| libsm6 \ | |
| cmake \ | |
| build-essential \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Core DS/ML stack (matches Colab baseline) | |
| RUN pip install --no-cache-dir \ | |
| fastapi uvicorn pydantic python-multipart \ | |
| numpy pandas scipy networkx scikit-learn \ | |
| transformers datasets accelerate tokenizers \ | |
| sentence-transformers diffusers \ | |
| torchao \ | |
| matplotlib seaborn plotly pillow \ | |
| opencv-python-headless albumentations \ | |
| requests beautifulsoup4 httpx \ | |
| nltk textblob spacy \ | |
| xgboost lightgbm catboost statsmodels \ | |
| tqdm einops safetensors joblib h5py \ | |
| openai anthropic google-genai \ | |
| langchain langchain-community langgraph \ | |
| dask distributed \ | |
| librosa soundfile pydub \ | |
| umap-learn \ | |
| bokeh \ | |
| fastai \ | |
| duckdb | |
| RUN pip install --no-cache-dir \ | |
| --index-url https://download.pytorch.org/whl/cpu \ | |
| torch torchvision torchaudio | |
| RUN python -m spacy download en_core_web_sm | |
| WORKDIR /app | |
| COPY server.py . | |
| ENV PORT=7860 | |
| CMD ["python", "server.py"] | |