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/4aef4083b36f8ccd0ce5ee6a8fc5ee0ea9b4ebd7/api/index.py
- Command line
-
hf download hf://spaces/vinith17/CodeBug@4aef4083b36f8ccd0ce5ee6a8fc5ee0ea9b4ebd7/api/index.py
-
curl -L -o index.py https://huggingface.co/spaces/vinith17/CodeBug/resolve/4aef4083b36f8ccd0ce5ee6a8fc5ee0ea9b4ebd7/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 | |