Spaces:
Sleeping
Sleeping
Download src/__init__.py from sifars/proposal-generator: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/sifars/proposal-generator/resolve/main/src/__init__.py
- Command line
-
hf download hf://spaces/sifars/proposal-generator/src/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/sifars/proposal-generator/resolve/main/src/__init__.py
611 Bytes
| import os | |
| from dotenv import load_dotenv | |
| from .app import app | |
| load_dotenv() | |
| if not os.getenv("SMTP_SERVER"): | |
| raise ValueError("SMTP_SERVER environment not set.") | |
| if not os.getenv("SMTP_PORT"): | |
| raise ValueError("SMTP_PORT environment not set.") | |
| if not os.getenv("SMTP_USERNAME"): | |
| raise ValueError("SMTP_USERNAME environment not set.") | |
| if not os.getenv("SMTP_PASSWORD"): | |
| raise ValueError("SMTP_PASSWORD environment not set.") | |
| if not os.getenv("SENDER_EMAIL"): | |
| raise ValueError("SENDER_EMAIL environment not set.") | |
| __all__ = ["app"] | |
| __version__ = "0.1.0" | |
| __author__ = "Kanha Upadhyay" | |