Spaces:
Sleeping
Sleeping
Download wsgi_pythonanywhere_sample.py from moathA/tarist-web: direct link, hf CLI and curl.
- Browser
- Download file 201 Bytes
-
https://huggingface.co/spaces/moathA/tarist-web/resolve/main/wsgi_pythonanywhere_sample.py
- Command line
-
hf download hf://spaces/moathA/tarist-web/wsgi_pythonanywhere_sample.py
-
curl -L -o wsgi_pythonanywhere_sample.py https://huggingface.co/spaces/moathA/tarist-web/resolve/main/wsgi_pythonanywhere_sample.py
201 Bytes
| import sys | |
| import os | |
| # Set up paths for PythonAnywhere | |
| path = '/home/YOUR_USERNAME/YOUR_PROJECT_FOLDER' | |
| if path not in sys.path: | |
| sys.path.append(path) | |
| from app import app as application | |