Spaces:
Sleeping
Sleeping
Download api/index.py from vinith17/CodeBug: direct link, hf CLI and curl.
- Browser
- Download file 274 Bytes
-
https://huggingface.co/spaces/vinith17/CodeBug/resolve/06bcb61b39fa93f0f488bef1660d08e91e1e71cc/api/index.py
- Command line
-
hf download hf://spaces/vinith17/CodeBug@06bcb61b39fa93f0f488bef1660d08e91e1e71cc/api/index.py
-
curl -L -o index.py https://huggingface.co/spaces/vinith17/CodeBug/resolve/06bcb61b39fa93f0f488bef1660d08e91e1e71cc/api/index.py
274 Bytes
| import sys | |
| import os | |
| # Add root directory to path so imports work identically to running locally | |
| sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from app import app | |
| # Vercel needs the flask app to be exposed exactly like this in api/index.py | |