Spaces:
Sleeping
Sleeping
Commit ·
67e4602
1
Parent(s): 8086503
nothing
Browse filesFiles changed (2)
- Dockerfile+1-1
- app.py+1-2
4 unmodified lines56788910114 unmodified linesWORKDIR /app
# Set HF cache inside containerENV HF_HUB_CACHE=/app/hf_cacheENV HF_HUB_CACHE=/tmp/hf_cache
# Copy requirements and installCOPY requirements.txt .5 unmodified lines67899101113121314155 unmodified linesfrom flask import Flask, request, jsonifyfrom flask_cors import CORSimport ioimport osfrom huggingface_hub import hf_hub_download
# Set Hugging Face cache to a folder inside the containeros.environ['HF_HUB_CACHE'] = '/app/hf_cache'os.environ['HF_HUB_CACHE'] = '/tmp/hf_cache'
# Initialize Flask appapp = Flask(__name__)Dockerfile+1-1
app.py+1-2