Spaces:
Runtime error
Runtime error
Upload Dockerfile with huggingface_hub
Browse files8 unmodified lines910111213141516171819202122232425268 unmodified linesCOPY requirements-space.txt .RUN pip install --no-cache-dir -r requirements-space.txt# Pre-download model at build time (avoids timeout at runtime)RUN python3 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"# Pre-download data at build timeRUN python3 -c "from huggingface_hub import hf_hub_downloadimport osos.makedirs('data', exist_ok=True)for f in ['papers.db', 'faiss_index.bin']:hf_hub_download(repo_id='vengen9840/paperlens-data', filename=f, repo_type='dataset', local_dir='data')print('Data ready!')"COPY src/ ./src/8 unmodified lines91011121314151617188 unmodified linesCOPY requirements-space.txt .RUN pip install --no-cache-dir -r requirements-space.txtRUN python3 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"COPY download_data.py .RUN python3 download_data.pyCOPY src/ ./src/
Dockerfile+2-10