Spaces:
Sleeping
Sleeping
Commit ·
2f54c6b
1
Parent(s): 5636459
not big
Browse files5 unmodified lines678910111213141516175 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'
# Initialize Flask appapp = Flask(__name__)CORS(app) # Enable CORS for all routesapp.py+4