Update app.py
Browse files12 unmodified lines131415161718192021225 unmodified lines28293031323312 unmodified linesimport gcfrom typing import Dict, Anyimport cloudscrapertmp_dir = tempfile.gettempdir()logging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)5 unmodified lines# Define a global temporary download directoryglobal_download_dir = tempfile.mkdtemp()# Rate limiting dictionaryclass RateLimiter:12 unmodified lines1314151617181920215 unmodified lines2728293031323312 unmodified linesimport gcfrom typing import Dict, Anyimport cloudscraperfrom fastapi.staticfiles import StaticFileslogging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)5 unmodified lines# Define a global temporary download directoryglobal_download_dir = tempfile.mkdtemp()app.mount("/file", StaticFiles(directory=global_download_dir), name="downloads")# Rate limiting dictionaryclass RateLimiter:
app.py+2-2